Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Github Api Laravel Package

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).

View on GitHub
Deep Wiki
Context7

Organization / Webhooks API

Back to the navigation

Listing, showing, assigning, and removing orgniazationroles. Wraps GitHub Organization Roles API.

Additional APIs:

List all organizaton roles in an organization

Requires authentication.

$roles = $client->organization()->organizationRoles()->all('acme');

Returns a counter and a list of organization roles in the organization.

Get an organization role in an organization

Requires authentication.

$role = $client->organization()->organizationRoles()->show('acme', 123);

Returns a single organization role in the organization.

List all teams with role assigned in an organization

Requires authentication.

$users = $client->organization()->organizationRoles()->listTeamsWithRole('acme', 1);

Returns a list of teams with the role assigned to them.

Assign a single role to a team in an organization

Requires authentication.

$client->organization()->organizationRoles()->assignRoleToTeam('acme', 1, 'admin-user');

No content is returned.

Remove a single role from a team in an organization

Requires authentication.

$client->organization()->organizationRoles()->removeRoleFromTeam('acme', 1, 'admin-team');

No content is returned.

Remove all roles from a team in an organization

Requires authentication.

$client->organization()->organizationRoles()->removeAllRolesFromTeam('acme', 'admin-team');

No content is returned.

List all users with role assigned in an organization

Requires authentication.

$users = $client->organization()->organizationRoles()->listUsersWithRole('acme', 1);

Returns a list of users with the role assigned to them.

Assign a single role to a user in an organization

Requires authentication.

$client->organization()->organizationRoles()->assignRoleToUser('acme', 1, 'admin-user');

No content is returned.

Remove a single role from a user in an organization

Requires authentication.

$client->organization()->organizationRoles()->removeRoleFromUser('acme', 1, 'admin-user');

No content is returned.

Remove all roles from a user in an organization

Requires authentication.

$client->organization()->organizationRoles()->removeAllRolesFromUser('acme', 'admin-user');

No content is returned.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport
twbs/bootstrap4
php-http/client-implementation
phpcr/phpcr-implementation
cucumber/gherkin-monorepo
haydenpierce/class-finder
psr/simple-cache-implementation