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 to PublicKeys to reflect to github api name.