{"id":15035957,"url":"https://github.com/knplabs/php-github-api","last_synced_at":"2025-05-13T15:06:27.784Z","repository":{"id":2936587,"uuid":"3948501","full_name":"KnpLabs/php-github-api","owner":"KnpLabs","description":"A simple PHP GitHub API client, Object Oriented, tested and documented.","archived":false,"fork":false,"pushed_at":"2024-11-07T19:35:37.000Z","size":2208,"stargazers_count":2190,"open_issues_count":46,"forks_count":599,"subscribers_count":73,"default_branch":"master","last_synced_at":"2025-04-23T07:01:58.519Z","etag":null,"topics":["github-api","hacktoberfest","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KnpLabs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG-3.X.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["acrobat"]}},"created_at":"2012-04-06T09:44:28.000Z","updated_at":"2025-04-22T20:16:14.000Z","dependencies_parsed_at":"2023-07-06T05:57:39.080Z","dependency_job_id":"addf360e-0660-4de6-9e1e-1c10984c8e39","html_url":"https://github.com/KnpLabs/php-github-api","commit_stats":{"total_commits":1195,"total_committers":299,"mean_commits":"3.9966555183946486","dds":0.8794979079497908,"last_synced_commit":"0e2399c93eb53be2243871c420eb1c6641cf0c7b"},"previous_names":[],"tags_count":92,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KnpLabs%2Fphp-github-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KnpLabs%2Fphp-github-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KnpLabs%2Fphp-github-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KnpLabs%2Fphp-github-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KnpLabs","download_url":"https://codeload.github.com/KnpLabs/php-github-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252552805,"owners_count":21766771,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["github-api","hacktoberfest","php"],"created_at":"2024-09-24T20:29:49.490Z","updated_at":"2025-05-05T18:29:57.328Z","avatar_url":"https://github.com/KnpLabs.png","language":"PHP","readme":"# PHP GitHub API\n\n![Build Status](https://github.com/KnpLabs/php-github-api/actions/workflows/ci.yml/badge.svg)\n[![StyleCI](https://styleci.io/repos/3948501/shield?style=flat)](https://styleci.io/repos/3948501)\n[![Latest Stable Version](https://poser.pugx.org/knplabs/github-api/v/stable)](https://packagist.org/packages/knplabs/github-api)\n[![Total Downloads](https://poser.pugx.org/knplabs/github-api/downloads)](https://packagist.org/packages/knplabs/github-api)\n[![Monthly Downloads](https://poser.pugx.org/knplabs/github-api/d/monthly)](https://packagist.org/packages/knplabs/github-api)\n[![Daily Downloads](https://poser.pugx.org/knplabs/github-api/d/daily)](https://packagist.org/packages/knplabs/github-api)\n\nA simple Object Oriented wrapper for GitHub API, written with PHP.\n\nUses [GitHub API v3](http://developer.github.com/v3/) \u0026 supports [GitHub API v4](http://developer.github.com/v4). The object API (v3) is very similar to the RESTful API.\n\n## Features\n\n* Light and fast thanks to lazy loading of API classes\n* Extensively tested and documented\n\n## Requirements\n\n* PHP \u003e= 7.2\n* A [PSR-17 implementation](https://packagist.org/providers/psr/http-factory-implementation)\n* A [PSR-18 implementation](https://packagist.org/providers/psr/http-client-implementation)\n\n## Quick install\n\nVia [Composer](https://getcomposer.org).\n\nThis command will get you up and running quickly with a Guzzle HTTP client.\n\n```bash\ncomposer require knplabs/github-api:^3.0 guzzlehttp/guzzle:^7.0.1 http-interop/http-factory-guzzle:^1.0\n```\n\n## Advanced install\n\nWe are decoupled from any HTTP messaging client with help by [HTTPlug](https://httplug.io). \n\n### Using a different http client\n\n```bash\ncomposer require knplabs/github-api:^3.0 symfony/http-client nyholm/psr7\n```\n\nTo set up the Github client with this HTTP client\n\n```php\nuse Github\\Client;\nuse Symfony\\Component\\HttpClient\\HttplugClient;\n\n$client = Client::createWithHttpClient(new HttplugClient());\n```\n\nRead more about [using different clients in our docs](doc/customize.md).\n\n## Framework integrations\n\n### Laravel\n\nTo integrate this library in laravel [Graham Campbell](https://github.com/GrahamCampbell) created [graham-campbell/github](https://github.com/GrahamCampbell/Laravel-GitHub). See the [installation instructions](https://github.com/GrahamCampbell/Laravel-GitHub#installation) to get started in laravel.\n\n## Basic usage of `php-github-api` client\n\n```php\n\u003c?php\n\n// This file is generated by Composer\nrequire_once __DIR__ . '/vendor/autoload.php';\n\n$client = new \\Github\\Client();\n$repositories = $client-\u003eapi('user')-\u003erepositories('ornicar');\n```\n\nFrom `$client` object, you have access to all available GitHub api endpoints.\n\n## Cache usage\n\nThis example uses the PSR6 cache pool [redis-adapter](https://github.com/php-cache/redis-adapter). See http://www.php-cache.com/ for alternatives.\n\n```php\n\u003c?php\n\n// This file is generated by Composer\nrequire_once __DIR__ . '/vendor/autoload.php';\n\nuse Cache\\Adapter\\Redis\\RedisCachePool;\n\n$client = new \\Redis();\n$client-\u003econnect('127.0.0.1', 6379);\n// Create a PSR6 cache pool\n$pool = new RedisCachePool($client);\n\n$client = new \\Github\\Client();\n$client-\u003eaddCache($pool);\n\n// Do some request\n\n// Stop using cache\n$client-\u003eremoveCache();\n```\n\nUsing cache, the client will get cached responses if resources haven't changed since last time,\n**without** reaching the `X-Rate-Limit` [imposed by github](http://developer.github.com/v3/#rate-limiting).\n\n\n## Documentation\n\nSee the [`doc` directory](doc/) for more detailed documentation.\n\n## License\n\n`php-github-api` is licensed under the MIT License - see the LICENSE file for details\n\n## Maintainers\n\nPlease read [this post](https://knplabs.com/en/blog/news-for-our-foss-projects-maintenance) first.\n\nThis library is maintained by the following people (alphabetically sorted) :\n- [@acrobat](https://github.com/acrobat)\n- [@Nyholm](https://github.com/Nyholm)\n\n## Contributors\n\n- Thanks to [Thibault Duplessis aka. ornicar](https://github.com/ornicar) for his first version of this library.\n- Thanks to [Joseph Bielawski aka. stloyd](https://github.com/stloyd) for his contributions and support.\n- Thanks to [noloh](https://github.com/noloh) for his contribution on the Object API.\n- Thanks to [bshaffer](https://github.com/bshaffer) for his contribution on the Repo API.\n- Thanks to [Rolf van de Krol](https://github.com/rolfvandekrol) for his countless contributions.\n- Thanks to [Nicolas Pastorino](https://github.com/jeanvoye) for his contribution on the Pull Request API.\n- Thanks to [Edoardo Rivello](https://github.com/erivello) for his contribution on the Gists API.\n- Thanks to [Miguel Piedrafita](https://github.com/m1guelpf) for his contribution to the v4 \u0026 Apps API.\n- Thanks to [Emre DEGER](https://github.com/lexor) for his contribution to the Actions API.\n\nThanks to GitHub for the high quality API and documentation.\n","funding_links":["https://github.com/sponsors/acrobat"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknplabs%2Fphp-github-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknplabs%2Fphp-github-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknplabs%2Fphp-github-api/lists"}