PHP Github API v2.0.0-rc4 Release Notes

  • โž• Added

    • HTTPlug to decouple from Guzzle
    • Github\Client::getLastResponse was added
    • ๐Ÿ‘Œ Support for PSR-6 cache
    • ๐Ÿšš Github\Client::addPlugin and Github\Client::removePlugin
    • Github\Client::getApiVersion
    • ๐Ÿšš Github\Client::removeCache

    ๐Ÿ”„ Changed

    • ๐Ÿ‘‰ Uses of Github\HttpClient\HttpClientInterface is replaced by Http\Client\HttpClient ie the constructor of Github\Client.
    • We use PSR-7's representation of HTTP message instead of Guzzle\Http\Message\Response and Guzzle\Http\Message\Request.
    • Github\Client::addHeaders was added instead of Github\Client::setHeaders
    • ๐Ÿ‘• Signature of Github\Client::useCache has changed. First argument must be a CacheItemPoolInterface
    • We use PSR-4 instead of PSR-0

    โœ‚ Removed

    • ๐Ÿ‘Œ Support for PHP 5.3 and 5.4
    • ๐Ÿšš Github/HttpClient/HttpClientInterface was removed
    • ๐Ÿšš Github/HttpClient/HttpClient was removed
    • ๐Ÿšš All classes in Github/HttpClient/HttpClient/Listener/* were removed
    • ๐Ÿšš Github/HttpClient/CachedHttpClient was removed
    • ๐Ÿšš All classes in Github/HttpClient/Cache/* were removed