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

Notification API

Back to the navigation

Listing notifications and marking them as read. Wraps GitHub Notification API.

List notifications

$issues = $client->api('notification')->all();

Returns an array of unread notifications.

Include already read notifications, including participating, or since a certain date

$includingRead = true;
$participating = true;
$since = new DateTime('1970/01/01');
$issues = $client->api('notification')->all($includingRead, $participating, $since);

Returns an array of all notifications

Mark notifications as read

$client->api('notification')->markRead();

or up until a certain date

$client->api('notification')->markRead(new DateTime('2015/01/01'));

Marks all notifications as read up until the current date, unless a date is given

Mark a thread as read using its ID

$client->api('notification')->markThreadRead($id);

Marks a single thread as read using its ID.

Get a single thread using its ID

$client->api('notification')->id($id);

Retrieves single thread's data using its ID.

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