Skip to content

Commit

Permalink
Merge pull request #4 from ricardofiorani/psr18-version-bump
Browse files Browse the repository at this point in the history
bumped version and added documentation
  • Loading branch information
ricardofiorani authored Dec 11, 2018
2 parents daf7e8c + a6df5e6 commit 380e1ee
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,14 @@ $ composer require ricardofiorani/guzzle-psr18-adapter

## Usage

``` php
```php
$client = new \RicardoFiorani\GuzzlePsr18Adapter\Client();
$request = new \Your\Implementation\Of\Psr7\Request();

echo $client->sendRequest($request);
try {
echo $client->sendRequest($request);
} catch (\Psr\Http\Client\ClientExceptionInterface $exception) {
// your error handling
}
```
For futher documentation please see [http://docs.guzzlephp.org/en/stable/](http://docs.guzzlephp.org/en/stable/)

Expand All @@ -45,4 +48,4 @@ $ composer test
- [All Contributors][link-contributors]

[link-author]: https://github.com/ricardofiorani
[link-contributors]: ../../contributors
[link-contributors]: ../../contributors
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
"require": {
"php": "^7.1",
"guzzlehttp/guzzle": "^6.3",
"psr/http-client": "^0.3.0"
"psr/http-client": "^1.0"
},
"require-dev": {
"phpunit/phpunit": "^7.3",
"spryker/code-sniffer": "^0.12.4"
},
"provide": {
"psr/http-client": "^0.3.0"
"psr/http-client": "^1.0"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 380e1ee

Please sign in to comment.