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, creating, updating, testing and removing organizations webhooks. Wraps GitHub Organization Webhooks API.

Additional APIs:

List webhooks for an organization

Requires authentication.

$webhooks = $client->organization()->all('KnpLabs');

Returns an array of webhooks for the organization.

Get a webhook for an organization

Requires authentication.

$webhook = $client->organization()->show('KnpLabs', 123);

Returns the webhook with the ID 123 as an array for the organization.

Create a new webhook for an organization

Requires authentication.

$webhook = $client->organization()->create('KnpLabs', array(
	'name'   => 'web',
	'active' => true,
	'events' => array(
		'push',
		'pull_request'
	),
	'config' => array(
		'url'          => 'http=>//example.com/webhook',
		'content_type' => 'json'
	)
));

Creates a new webhook for the organization. name and url parameters are required.

The create webhook will be returned as an array.

Update an existing webhook for an organization

Requires authentication.

$success = $client->organization()->update('KnpLabs', 123, array(
	'active' => true,
	'events' => array(
		'push',
		'pull_request'
	),
	'config' => array(
		'url'          => 'http=>//example.com/webhook',
		'content_type' => 'json'
	)
));

Update an existing webhook with ID 123 for the organization. url parameter is required.

In case of success, an array of information about the webhook will be returned.

Ping a webhook for an organization

Requires authentication.

$client->organization()->pings('KnpLabs', 123);

No content is returned.

Delete a webhook for an organization

Requires authentication.

$client->organization()->delete('KnpLabs', 123);

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.
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle