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).
Back to the "Repos API" | Back to the navigation
This api is currently only available to developers in Early Access. To access the API during the Early Access period, you must provide a custom media type in the Accept header.
Both repositories and organisations have projects. The api is only different for getting all project or retrieving a single project.
All the example use the repository projects column api but this also works form the organization api ($client->api('org_projects')->columns())
$client->api('repo')->projects()->columns()->configure();
$columns = $client->api('repo')->projects()->columns()->all($projectId);
$column = $client->api('repo')->projects()->columns()->show($columnId);
Requires authentication.
$column = $client->api('repo')->projects()->columns()->create($projectId, array('name' => 'Column name'));
Requires authentication.
$column = $client->api('repo')->project()->columns()->update($columnId, array('name' => 'New name'));
Requires authentication.
$column = $client->api('repo')->projects()->columns()->deleteColumn($columnId);
Requires authentication.
$column = $client->api('repo')->projects()->columns()->move($columnId, array('position' => 'first));
How can I help you explore Laravel packages today?