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).
Wraps GitHub User Public Keys API.
$keys = $client->me()->keys()->all();
Returns a list of public keys for the authenticated user.
$key = $client->me()->keys()->show(1234);
Requires authentication.
$key = $client->me()->keys()->create(array('title' => 'key title', 'key' => 12345));
Adds a key with title 'key title' to the authenticated user and returns the created key for the user.
Requires authentication.
$client->me()->keys()->remove(12345);
How can I help you explore Laravel packages today?