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).
The Copilot Usage API provides endpoints to retrieve usage summaries for organizations and enterprises.
Note: This endpoint is in beta and is subject to change.
Retrieve the usage summary for a specific organization.
Method: GET
Endpoint: /orgs/{organization}/copilot/usage
Parameters:
organization (string): The name of the organization.params (array, optional): Additional query parameters.Example:
$usage = $client->api('copilotUsage')->orgUsageSummary('KnpLabs');
Retrieve the usage summary for a specific team within an organization.
Method: GET
Endpoint: /orgs/{organization}/team/{team}/copilot/usage
Parameters:
organization (string): The name of the organization.team (string): The name of the team.params (array, optional): Additional query parameters.Example:
$usage = $client->api('copilotUsage')->orgTeamUsageSummary('KnpLabs', 'developers');
Retrieve the usage summary for a specific enterprise.
Method: GET
Endpoint: /enterprises/{enterprise}/copilot/usage
Parameters:
enterprise (string): The name of the enterprise.params (array, optional): Additional query parameters.Example:
$usage = $client->api('copilotUsage')->enterpriseUsageSummary('KnpLabs');
Retrieve the usage summary for a specific team within an enterprise.
Method: GET
Endpoint: /enterprises/{enterprise}/team/{team}/copilot/usage
Parameters:
enterprise (string): The name of the enterprise.team (string): The name of the team.params (array, optional): Additional query parameters.Example:
$usage = $client->api('copilotUsage')->enterpriseTeamUsageSummary('KnpLabs', 'developers');
How can I help you explore Laravel packages today?