graze / guzzle-jsonrpc

JSON-RPC 2.0 client for Guzzle
https://packagist.org/packages/graze/guzzle-jsonrpc
MIT License
93 stars 61 forks source link

Upgrade to Guzzle 6 (w/ PSR7) #19

Closed adlawson closed 9 years ago

adlawson commented 9 years ago

These changes upgrade the lib to Guzzle 6 and resolves #17. There's quite a lot of internal changes because Guzzle 6 is quite a lot different to 5, but where possible I've tried to keep external APIs the same as they were before.

The biggest BC breaking change removes the ErrorSubscriber completely as Guzzle 6 no longer has the internal event emitter. It now uses a middleware layer to optionally throw exceptions on error. Guzzle 6 only supports PHP versions 5.5+, so naturally that's another BC break.

In the README, I've added a recommended release tag of 3.0, and I've recommended that the current master branch be maintained in a guzzle-5 branch (just like we've done with previous guzzle updates).