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
andGithub\Client::removePlugin
Github\Client::getApiVersion
- ๐
Github\Client::removeCache
๐ Changed
- ๐ Uses of
Github\HttpClient\HttpClientInterface
is replaced byHttp\Client\HttpClient
ie the constructor ofGithub\Client
. - We use PSR-7's representation of HTTP message instead of
Guzzle\Http\Message\Response
andGuzzle\Http\Message\Request
. Github\Client::addHeaders
was added instead ofGithub\Client::setHeaders
- ๐ Signature of
Github\Client::useCache
has changed. First argument must be aCacheItemPoolInterface
- 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