Skip to content

Commit

Permalink
Add intallation note with wordpress
Browse files Browse the repository at this point in the history
  • Loading branch information
Art4 committed Nov 24, 2023
1 parent a9774a8 commit ef6cd30
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,21 @@ WordPress/Requests PSR-18 Adapter is [available on Packagist](https://packagist.
composer require art4/requests-psr18-adapter
```

If you want to use WordPress/Requests PSR-18 Adapter in context of a WordPress instance (e.g. in a plugin or theme) you should add `"rmccue/requests": "*"` as a `replace` package link. This will prevent composer from installing `rmccue/requests` two times, leading to fatal errors.

Example `composer.json`:

```json
{
"require": {
"art4/requests-psr18-adapter": "^1.1"
},
"replace": {
"rmccue/requests": "*"
}
}
```

### Examples

Take a look at the [examples directory](examples/) for more examples.
Expand Down

0 comments on commit ef6cd30

Please sign in to comment.