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 / Secrets API

Back to the "Organization API" | Back to the navigation

List organization secrets

https://docs.github.com/en/rest/reference/actions#list-organization-secrets

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

Get an organization secret

https://docs.github.com/en/rest/reference/actions#get-an-organization-secret

$secret = $client->organization()->secrets()->show('KnpLabs', $secretName);

Create an organization secret

https://docs.github.com/en/rest/reference/actions#create-or-update-an-organization-secret

$client->organization()->secrets()->create('KnpLabs', $secretName, [
    'encrypted_value' => $encryptedValue,
    'visibility' => $visibility,
    'selected_repository_ids' => $selectedRepositoryIds,
]);

Update an organization secret

https://docs.github.com/en/rest/reference/actions#create-or-update-an-organization-secret

$client->organization()->secrets()->update('KnpLabs', $secretName, [
    'key_id' => 'keyId',
    'encrypted_value' => 'encryptedValue',
    'visibility' => 'private',
]);

Delete an organization secret

https://docs.github.com/en/rest/reference/actions#delete-an-organization-secret

$client->organization()->secrets()->remove('KnpLabs', $secretName);

List selected repositories for organization secret

https://docs.github.com/en/rest/reference/actions#list-selected-repositories-for-an-organization-secret

$client->organization()->secrets()->selectedRepositories('KnpLabs', $secretName);

Set selected repositories for an organization secret

https://docs.github.com/en/rest/reference/actions#set-selected-repositories-for-an-organization-secret

$client->organization()->secrets()->setSelectedRepositories('KnpLabs', 'secretName', [
    'selected_repository_ids' => [1, 2, 3],
]);

Remove selected repository from an organization secret

https://docs.github.com/en/rest/reference/actions#remove-selected-repository-from-an-organization-secret

$client->organization()->secrets()->addSecret('KnpLabs', $repositoryId, $secretName);

Get an organization public key

https://docs.github.com/en/rest/reference/actions#get-an-organization-public-key

$client->organization()->secrets()->publicKey('KnpLabs');
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.
apiboxsym/user-bundle
apiboxsym/health-check-bundle
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