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

Search API

Back to the navigation

Searching repositories, code, issues and users. Wrap GitHub Search API. All methods are described on that page.

Search repositories

$repos = $client->api('search')->repositories('github language:php');

Returns a list of repositories found by such criteria.

Search code

$files = $client->api('search')->code('[@todo](https://github.com/todo) language:php');

Returns a list of files found by such criteria (containing "@todo" and language==php).

$files = $client->api('search')->codeWithMatch('[@todo](https://github.com/todo) language:php');

Same as code, with additional data to highlight the matching fragments (see Text match metadata).

Search issues

$issues = $client->api('search')->issues('bug language:php');

Returns a list of issues found by such criteria.

Search users

$users = $client->api('search')->users('location:Amsterdam language:php');

Search commits

$commits = $client->api('search')->commits('repo:octocat/Spoon-Knife+css');

Returns a list of users found by such criteria.

Sorting results

You can sort results using 2-3 arguments.

$repos = $client->api('search')->repositories('...', 'created', 'asc');
$files = $client->api('search')->code('...........', 'indexed', 'desc');
$issues = $client->api('search')->issues('.........', 'comments', 'asc');
$users = $client->api('search')->users('..........', 'followers', 'asc');
$commits = $client->api('search')->commits('..........', 'author-date', 'desc');
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
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
uri-template/tests