Download the PHP package rulecom/notifier without Composer
On this page you can find all versions of the php package rulecom/notifier. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rulecom/notifier
More information about rulecom/notifier
Files in rulecom/notifier
Package notifier
Short Description Send notification via Rule and other providers
License MIT
Homepage https://github.com/rulecom/notifier
Informations about the package notifier
Rule notifier
Send notifications via Rule (email/text message) and Slack. Inspired by Laravels notification system and can be used with the Laravel framework or completely indipendent.
Install
Via Composer
Usage
To send notification you need to create notification objects. These objects are responsible for telling the Notifier via which channels the notification message should be sent through and what each corresponding channel message should contain.
Channels
Currently this package supports the following channel providers:
Email via (Rule):
Slack:
Usage with Laravel
This package can be easily integrated with laravel, with the following benefits.
- No need to pass in channel dependecies on your own.
- Ability to specify configurations such as, api key for Rule and webhook for Slack.
-
In your
config/app.php
add the following service provider - Publish the config:
Debugging
If you need to debug a channel you may set it to debug mode. When a channel is in debug mode it will log the notification instead of dispatching the it to given channel.
To enable debug:
- Inject
Monolog\Logger
into the channel. - Call the
debug
method and pass in a path to your logfile.
Change log
Please see CHANGELOG for more information what has changed recently.
Testing
Contributing
Please see CONDUCT for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
All versions of notifier with dependencies
guzzlehttp/guzzle Version ~6.2|^7.0
illuminate/support Version ~5.1|~6.2|~7.2|^8.38|^9.48
monolog/monolog Version ^1.21|^2.0