PackageTrack
Sign in Get early access

knplabs/github-api

GitHub API v3 client

v3.16.1 18M downloads/mo #1252 most downloaded on Packagist KnpLabs/php-github-api

What this package is like to depend on

Last release 6 days ago

18 Aug 2026

Release timing varies

gaps range from 5 weeks to 1.8 years

Some releases are documented

notes for 36 of 88 stable releases

Nothing withdrawn

no release was ever pulled

14 years old

93 releases · first in 2012

1 release in the last 12 months

see the full history below

Release timeline

92 releases · Jul 2012 to Aug 2026
2013 2015 2017 2019 2021 2023 2025
Release Pre-release

Releases

latest 60 of 93
  1. v3.16.1 18 Aug 2026
    Release notes

    Fixed

    Open source →
  2. v3.16.0 07 Nov 2024
    Release notes

    Added

    • Add API to rerequest a check run (Spea) #1141
    • List pull requests associated with a commit (lmjhs) #1146
    Open source →
  3. v3.15.0 23 Sep 2024
    Release notes

    Added

    Open source →
  4. v3.14.1 24 Mar 2024
    Release notes

    Fixed

    • Handle case of GitHub returning 204 No Content in some scenarios (tomcorbett) #1135
    Open source →
  5. v3.14.0 19 Mar 2024
    Release notes

    Added

    Open source →
  6. v3.13.0 19 Nov 2023
    Release notes

    Added

    Changed

    Fixed

    Open source →
  7. v3.12.0 30 Sep 2023
    Release notes

    Added

    Changed

    Open source →
  8. v3.11.0 10 Mar 2023
    Release notes

    Added

    Changed

    Fixed

    Open source →
  9. v3.10.0 09 Mar 2023
    Release notes

    Added

    Changed

    Open source →
  10. v3.9.0 24 Oct 2022
    Release notes

    Added

    Changed

    Open source →
  11. v3.8.0 01 Aug 2022

    Nothing published for this version

  12. v3.7.0 12 Jun 2022

    Nothing published for this version

  13. v3.6.0 24 Mar 2022

    Nothing published for this version

  14. v3.5.1 19 Feb 2022

    Nothing published for this version

  15. v3.5.0 23 Jan 2022

    Nothing published for this version

  16. v3.4.0 08 Dec 2021

    Nothing published for this version

  17. v3.3.0 20 May 2021

    Nothing published for this version

  18. v3.2.0 28 Apr 2021

    Nothing published for this version

  19. v3.1.0 11 Mar 2021

    Nothing published for this version

  20. v3.0.0 21 Dec 2020

    Nothing published for this version

  21. v2.20.0 16 Apr 2021
    Release notes

    Added

    • Deployments: added missing 'delete deployment' endpoint (clxmstaab) #991

    Changed

    Fixed

    Open source →
  22. v2.19.2 28 Mar 2021
    Release notes

    Changed

    Fixed

    • Deployments: use proper media-type for in_progress/queued, inactive state (staabm) #979
    • backported #979 into 2.x (staabm) #981
    • [952] doc - Specify lcobucci/jwt version, fix deprecation (amacrobert-meq, acrobat) #953
    • Replace deprecated organization team repository add/remove urls (acrobat) #985
    Open source →
  23. v2.19.1 11 Mar 2021
    Release notes

    Fixed

    Open source →
  24. v2.19.0 21 Dec 2020
    Release notes

    Added

    Open source →
  25. v2.18.0 11 Dec 2020
    Release notes

    Added

    Changed

    Fixed

    Open source →
  26. v2.17.0 14 Nov 2020
    Release notes

    Added

    Changed

    • Missing auth method in list of omitted passwords. (tobyS) #933
    • Improve github actions setup (acrobat) #935
    Open source →
  27. v2.16.0 08 Nov 2020
    Release notes

    Added

    • Add support for SSO errors coming from the API (eiriksm) #913
    • Add OutsideCollaborators api (Matth--) #925
    • Add support for creating a repo dispatch event (Nyholm) #931

    Changed

    Fixed

    Open source →
  28. v2.15.0 11 Jul 2020
    Release notes

    Added

    Changed

    Fixed

    Open source →
  29. v2.14.0 25 Apr 2020
    Release notes

    Added

    • Replace deprecated Organization\Teams api calls (lolos) #860
    • Add sort and direction for fetching organizations repos (pgrimaud) #863
    • Added parameters to Repo/milestones() method (dereuromark) #856

    Fixed

    • Remove incorrect MissingArgumentException in Labels api (bobeagan) #861

    Changed

    Open source →
  30. 2.13.0 16 Mar 2020
    Release notes

    Added

    • Support the new authorizations API
    • Repo community profile API endpoint
    • Support for draft PRs
    • Missing Apps endpoints
    • Test against php 7.4

    Changed

    • Allow create & remove to set and remove requests for teams
    Open source →
  31. 2.12.1 07 Nov 2019
    Release notes

    Fixed

    • Fixed bug in handling of validation errors
    • Updated docs to not use deprected string parameter in issue assignee call
    Open source →
  32. 2.12.0 03 Nov 2019
    Release notes

    Added

    • Support for HTTPlug 2.0 and PSR-18
    • Add support for GitHub Checks
    • Add support for GitHub Pages
    • Add support to update a Pull Request Review
    • Add support to get specific revision of a gist
    • Added a 4th argument $parameters to PullRequest::files()
    • Added Accept headers to Github Apps

    Removed

    • Active support for HHVM
    • Support for PHP <7.1

    Changed

    • Allow tags to be created without the Tagger object
    • When updating DeployKeys we will first remove existing then add a new DeployKey

    Fixed

    • In Trees we should check if array_key_exists('sha', $tree) instead of isset to avoid issues with null. (#822)

    Deprecated

    • Passing an integer ($page) as 4th arugment in Comments::all() is deprecated. It should be an array.
    Open source →
  33. 2.11.0 28 Jan 2019
    Release notes

    Added

    • Support for Miscellaneous Licenses (#744)
    • Structured Limit objects for rate limiting API (#733)
    • Support for getting star creation timestamps in activity/starring endpoint (#729)

    Fixed

    • Added missing has_projects parameter to repo create (#752)
    • Proper type hinting for magic methods (#758)
    • Allow symlink to files to be downloaded (#751)

    Changed

    • Fix of PHP version in readme (#747)
    • Fix documentation to get release for a tag (#755)
    • Declare all used properties in RateLimitResource class (#762)
    • Set correct property and return types (#764)
    • Fixed install docs broken after 2.0 release of httplug lib (#767)
    Open source →
  34. 2.10.1 05 Sep 2018
    Release notes

    Fixed

    • Convert the assignee parameter to array to avoid getting a 422 error on github (#738)
    • Fix GraphQL test warnings when they do not assert anything (#735)

    Changed

    • Check for BC breaks during the travis build (#734)
    Open source →
  35. 2.10.0 03 Sep 2018
    Release notes

    Added

    • Support for "before" parameter on Notification API (#724)

    Changed

    • Allow unspecified event when creating review (#723)

    Fixed

    • Adjust: installationn access token endpoint (#731)
    • Fixed "get single label" example and add correct example for getting issue's labels (#732)
    • Add comment about Key constructor argument (#722)
    Open source →
  36. 2.9.0 23 Jul 2018
    Release notes

    Added

    • API endpoint Github\Api\Repo::transfer()
    • API endpoint Github\Api\Notification::markThreadRead()
    • API endpoint Github\Api\Search::topics()

    Fixed

    • Make sure to always reset the "per page" in Github\ResultPager::fetchAll().
    Open source →
  37. 2.8.0 23 Mar 2018
    Release notes

    Added

    • Allow our HTTP plugins to show up in the Symfony web profiler page. (#687)
    • Repository documentation to current user (#671)
    • Add collaborator permission call (#678)
    • Add missing parameters for User/CurrentUser Repositories (#684)
    • Pimp the readme with badge poser (#686)

    Fixed

    • Typo in assignee documentation
    • Missing use statement in security example
    • Fixed phpdoc typo (#695)
    • Replace use of deprecated api to the correct one in the security docs (#697)

    Changed

    • Updated requirements in readme (#689)
    Open source →
  38. 2.7.0 12 Dec 2017
    Release notes

    Added

    • Phpunit 6 compatibility
    • Github\Api\AbstractApi::setPage() to allow you to set the page on all endpoints.
    • Support for query parameters and request headers on Github\Api\User::following and Github\Api\User::followers
    • API endpoint Github\Api\CurrentUser\Emails::allPublic()
    • API endpoint Github\Api\Search::commits()
    • API endpoint Github\Api\Miscellaneous\CodeOfConduct
    • API endpoint Github\Api\Repo::topics()
    • API endpoint Github\Api\Repo::replaceTopics()

    Fixed

    • Fixed bug in PathPrepend plugin where "api/vX" could be duplicated.

    Changed

    • Improved documentation and doc blocks

    Removed

    • Dropped support for php 5.5

    Deprecated

    The following endpoints were deprecated by Github and are also deprecated in the client:

    • Github\Api\Repo::find()
    • Github\Api\User::find()
    • Github\Api\Issue::find()
    Open source →
  39. 2.6.0 30 Sep 2017
    Release notes

    Added

    • Support for graphql api variables (#612)
    • Added missing branch protection methods (#616)
    • Helper function fromFile to get GraphQL queries from a file (#628)
    • Extra parameter params to collaborators api calls (#623)
    • Documentation for GitData API (#613)

    Fixed

    • Remove body as a required parameter when creating an issue (#624)
    • Minor fixes in example code (#617)
    Open source →
  40. 2.5.0 26 Jun 2017
    Release notes

    Added

    • Stable support for graphql api (V4) (#593)
    • Stable support for apps (previously integrations) (#592)
    • Repo::events()

    Fixed

    • Incorrect link in repository search docs (#594)
    • Added the required parameter $message on Review::dismiss.
    Open source →
  41. 2.4.0 10 May 2017
    Release notes

    Added

    • Integrations::configure to allow accessing early access program endpoints.
    • Add support for pagination and parameters in the pull request comments
    • Add the ability to fetch user installations (CurrentUser::installations)
    • Allow getting repo info by id (Repo::showById)
    • Allow fetching repositories for a specific installation and user (CurrentUser::repositoriesByInstallation)

    Changed

    • PullRequest\Review and PullRequest\ReviewRequest is now part of the official API. No need to call configure.
    Open source →
  42. 2.3.0 18 Apr 2017
    Release notes

    Fixed

    • Issue where we serve the wrong cached response. We vary on authorization header now.

    Added

    • PullRequest::status
    • Throw InvalidArgumentException on PullRequest::merge when wrong merge method is used.
    • Added Protection::configure

    Changed

    • First argument to Integrations::listRepositories() is now optional.
    • Moved tests from "functional" to "integration"
    Open source →
  43. 2.2.0 28 Mar 2017
    Release notes

    Added

    • API support for Pull Request Review Requests.
    • API support for Traffic.
    • API support for issue Assignees.
    • API support for Miscellaneous Gitignore and Emojis.
    • Added endpoints for issue lock, unlock and issue label show.
    • Added more parameters to User::starred.
    • Fluid interface by allowing configure() to return $this.
    • configure() support for issues API.

    Fixed

    • Cache issue where some requests are not cached
    • Issue with User::all() creates a query with double question marks.
    Open source →
  44. 2.1.0 23 Mar 2017
    Release notes

    Added

    • Add support for retrieving a single notification info using his ID
    • Add a function to get user organizations
    • Added GraphQL support
    • Add page variable to organization repo list (Organization::repositories())
    • Add support for pull request review.
    • Add support for adding branch protection.

    Fixed

    • Bug with double slashes when using enterprise URL.
    • Bug when headers not being passed to request (#529)
    Open source →
  45. 2.0.1 13 Dec 2016

    Nothing published for this version

  46. 2.0.0 11 Dec 2016
    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.
    Open source →
  47. 2.0.0-rc4 08 Sep 2016 pre-release
    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
    Open source →
  48. 2.0.0-rc3 04 Aug 2016 pre-release

    Nothing published for this version

  49. 2.0.0-rc2 31 Jul 2016 pre-release

    Nothing published for this version

  50. 2.0.0-rc1 29 Jul 2016 pre-release

    Nothing published for this version

  51. 2.0.0-rc 27 Jul 2016 pre-release

    Nothing published for this version

  52. 1.7.1 26 Jul 2016
    Release notes

    No change log before this version

    Open source →
  53. 1.7.0 29 May 2016

    Nothing published for this version

  54. 1.6.1 20 May 2016

    Nothing published for this version

  55. 1.6.0 24 Feb 2016

    Nothing published for this version

  56. 1.5.1 11 Oct 2015

    Nothing published for this version

  57. 1.5.0 20 Aug 2015

    Nothing published for this version

  58. 1.4.15 no date

    Nothing published for this version

  59. 1.4.14 03 Jul 2015

    Nothing published for this version

  60. 1.4.13 02 Jul 2015

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive