Download the PHP package dragon-code/github-notifications without Composer

On this page you can find all versions of the php package dragon-code/github-notifications. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package github-notifications

GitHub Notifications

The Dragon Code: GitHub Notifications

Stable Version Total Downloads Github Workflow Status

GitHub Notifications was created by, and is maintained by The Dragon Code, and is a simple command line tool to mark all notifications about issues or rejected PRs as read on a given organization.

Installation

PHP 8.2+ is required. To get the latest version, simply require the project using Composer:

Alternatively, you can simply clone the repo and run composer install in the folder.

Update global dependencies

To update global dependencies, use the console command:

Authentication

You'll also need to create yourself a personal access token for GitHub's API with access to the notifications scope.

By default, we check several places for the presence of a token in the following order:

  1. The token parameter passed when calling the console command
  2. The GITHUB_TOKEN environment variable
  3. ~/.composer/auth.json file
  4. ~/.config/.composer/auth.json file
  5. ~/.config/composer/auth.json file
  6. ~/AppData/Roaming/Composer/auth.json file
  7. ~/composer/auth.json file
  8. %USERPROFILE%/AppData/Roaming/Composer/auth.json file

If the token is not found, you will receive a message about this.

Usage

To read all issue notifications:

To clear all issue notifications for the Laravel organization:

Or, if you are specifying a token:

In addition, you can use any part of the organization name and/or repository name to check against the template:

Pattern matching is implemented using the Str::is method.

You can also specify several names:

When determining the name, the str_starts_with function is used.

Options

By default, only those Issues and Pull Requests that have been closed or merged are marked as read.

But you can define the parameters yourself:

For example:

With this set of options, notifications that have:

You can call the console command to display help information:

You can also exclude certain repositories:

With this set of options, notifications that have:

Result

Before

Execute a console command with the following parameters:

After

After with --with-open option

Execute a console command with the following parameters:

Support Us

❤️ The Dragon Code? Please consider supporting our collective on Boosty.

License

This package is licensed under the MIT License.


All versions of github-notifications with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package dragon-code/github-notifications contains the following files

Loading the files please wait ....