knplabs/github-api
Lightweight, well-tested PHP wrapper for GitHub APIs v3 (REST) and v4 (GraphQL). PSR-17/PSR-18 compatible via HTTPlug, with easy setup using Guzzle, Symfony HttpClient, or other PSR clients. Supports framework integrations (Laravel via graham-campbell/github).
$tags = $client->api('gitData')->tags()->all('KnpLabs', 'php-github-api');
$tag = $client->api('gitData')->tags()->show('KnpLabs', 'php-github-api', '839e5185da9434753db47959bee16642bb4f2ce4');
$tagData = [
'tag' => 'v0.0.1',
'message' => 'initial version',
'object' => 'c3d0be41ecbe669545ee3e94d31ed9a4bc91ee3c',
'type' => 'commit',
'tagger' => [
'name' => 'KnpLabs',
'email' => 'hello@knplabs.com',
'date' => '2017-06-17T14:53:35-07:00'
]
];
$tag = $client->api('gitData')->tags()->create('KnpLabs', 'php-github-api', $tagData);
How can I help you explore Laravel packages today?