Download the PHP package scabarcas/laravel-notify-matrix without Composer

On this page you can find all versions of the php package scabarcas/laravel-notify-matrix. 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 laravel-notify-matrix

Laravel Notify Matrix

CI Latest Version on Packagist Total Downloads PHP Version License

Manage per-user notification preferences in Laravel. Each user can opt in or out of channels for each notification group.

Installation

Quick start

Add the trait to the user model (or any notifiable):

Tag each notification with the group it belongs to:

Read and write preferences from the model:

With the trait on the notifiable and the attribute on the notification, the dispatch listener filters channels according to stored preferences. Forced channels are always delivered.

Configuration

Forced channels

Channels listed under groups.<group>.forced are delivered even when the user has opted out. Common use cases are security alerts and account verification messages.

Class map

Third-party notification classes that cannot be annotated with #[NotificationGroup] can be mapped to a group through the class_map entry. Annotated classes always take precedence over the map.

How it works

The package registers a listener for Illuminate\Notifications\Events\NotificationSending that runs before each channel dispatch:

  1. If the notifiable does not use HasNotificationPreferences, the listener does not interfere.
  2. If the notification has neither a #[NotificationGroup] attribute nor a class_map entry, the listener does not interfere.
  3. If the channel is listed as forced for the group, the channel is delivered.
  4. If the user has a stored preference for the channel, that value decides.
  5. Otherwise, the group default policy decides (or the global default if the group has none).

Testing

Author

Sebastian Cabarcas Berrio · @scabarcas17

License

MIT © Sebastian Cabarcas Berrio


All versions of laravel-notify-matrix with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
illuminate/contracts Version ^11.0|^12.0|^13.0
illuminate/database Version ^11.0|^12.0|^13.0
illuminate/notifications Version ^11.0|^12.0|^13.0
illuminate/support Version ^11.0|^12.0|^13.0
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 scabarcas/laravel-notify-matrix contains the following files

Loading the files please wait ...