Download the PHP package kiwilan/notifier-laravel without Composer

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

Notifier for Laravel

Banner with british letter box picture in background and Notifier for Laravel title

php laravel

version downloads license tests codecov

Notifier for Laravel is a package to send notifications (with Notifier) and monitoring (with Journal), built for Discord, Slack and mails.

Based on kiwilan/php-notifier.

[!IMPORTANT] This package does not support push notifications or SMS (if you interested, a PR is welcome) on kiwilan/php-notifier.

About

Laravel offers a built-in Notification and Laravel Logging systems, this package is an alternative to these systems.

Notifier allows to send notifications without link to a user model and advanced and Journal is based on Log facade. Journal can write logs send notifications and write logs in the database with filament/notifications package (not included and not required).

When native Laravel notifications are for users, this package is designed for developers to help for debugging and monitoring, but you can use it for users too.

This package offer a support for Discord and Slack webhooks, but Slack has only basic support (without legacy API support), for more, you can use laravel/slack-notification-channel. To avoid dependencies, this package doesn't use it.

Installation

You can install the package via composer:

You can publish the config file with:

[!NOTE] The configuration file is totally optional, if you have multiple webhooks, you can create your own configs to send notifications.

This is the contents of the published config file:

Usage

Journal

Journal is a utility class for Laravel Logging.

To database

You can use Journal to log in the database with filament/notifications package (you have to install it).

This method will search App\Models\User::class and get all users with canAccessPanel() allowed, by default all users with access will be notified.

To notifier

You can use Journal to send a notification with discord, mail or slack (you have to set the config file).

Handler

You can use Journal as a handler for Laravel Exceptions.

Notifier

Notifier is an alternative to Laravel Notifications.

[!NOTE] If notifier.journal.debug is true, debug level logs will be written for sending and sent notifications. In all cases, error level logs will be written for sending errors.

For HTTP client, you can configure notifier.client in the config file with stream, curl or guzzle and override it with second parameter for Discord, Slack and HTTP.

Discord

Default webhook URL, username and avatar URL can be set in the config file.

You can pass a custom webhook URL:

Mail

Default mailer, host, port, username, password, encryption, from address, from name, to address and to name can be set in the config file.

You can use NOTIFIER_MAIL_LARAVEL_OVERRIDE to use Laravel mailer instead of package mailer.

You can pass a custom mailer:

Slack

Default webhook URL can be set in the config file.

You can pass a custom webhook URL:

HTTP

You can use Notifier to send a request with http method. URL can be null if you set it in the config file with notifier.http.url.

Command

You can use Notifier as a command to send a notification with discord, mail or slack.

Two options are available:

Testing

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of notifier-laravel with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/contracts Version ^10.0 || ^11.0
kiwilan/php-notifier Version ^0.0.40
spatie/laravel-package-tools Version ^1.14.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 kiwilan/notifier-laravel contains the following files

Loading the files please wait ....