Skip to content

Commit

Permalink
Merge pull request #18 from Art4/add-installation-notes-with-wordpress
Browse files Browse the repository at this point in the history
Add intallation note with wordpress
  • Loading branch information
Art4 committed Nov 28, 2023
2 parents 04fb2bf + ef6cd30 commit 0d2f3df
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 0d2f3df

Please sign in to comment.