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 Issue Comments API.
Requires authentication.
$memberships = $client->currentUser()->memberships()->all();
Returns an array of your memberships in all organizations you are part of.
Requires authentication.
$membership = $client->currentUser()->memberships()->organization('KnpLabs');
KnpLabs : the organizationReturns an array of one membership in a specific organization.
Requires authentication.
$membership = $client->currentUser()->memberships()->edit('KnpLabs');
KnpLabs : the organizationUpdate your membership to an organization. The only possible action is to activate your membership.
How can I help you explore Laravel packages today?