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 Emails API.
Requires authentication.
$emails = $client->currentUser()->emails()->all();
$emails = $client->currentUser()->emails()->allPublic();
$emails = $client->currentUser()->emails()->add(['email1', 'email2']);
$client->currentUser()->emails()->remove(['email1', 'email2']);
$primaryEmail = $client->currentUser()->emails()->toggleVisibility();
How can I help you explore Laravel packages today?