PHP Github API v2.0.0 Release Notes
-
โ Added
- ๐ Support for JWT authentication
- API for Organization\Members
- API for Integrations
- API for Repo\Cards
- API for Repo\Columns
- API for Repo\Projects
- API for User\MyRepositories
- Methods in Repo API for frequency and participation
๐ Changed
ApiLimitExceedException::__construct
has a new second parameter for the remaining API calls.- First parameter of
Github\Client
has changed type from\Http\Client\HttpClient
to โฌ๏ธGithub\HttpClient\Builder
. A factory class was also added. To upgrade you need to change:
// Old way does not work: $github = new Github\Client($httpClient); // New way will work: $github = new Github\Client(new Github\HttpClient\Builder($httpClient)); $github = Github\Client::createWithHttpClient($httpClient);
- ๐ Renamed the currentuser
DeployKeys
api class toPublicKeys
to reflect to github api name.