Download the PHP package notify-eu/notify-bundle without Composer
On this page you can find all versions of the php package notify-eu/notify-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download notify-eu/notify-bundle
More information about notify-eu/notify-bundle
Files in notify-eu/notify-bundle
Package notify-bundle
Short Description Notify bundle for Symfony
License MIT
Homepage https://github.com/notify-eu/notify-bundle
Informations about the package notify-bundle
Notify notifications for Symfony 4
This package makes it easy to send notifications using Notify with Symfony 4
Contents
- Installation
- Setting up your Notify account
- Usage
- Available Message methods
- Changelog
- Testing
- Security
- Contributing
- Credits
- License
Installation
You can install the package via composer:
Setting up your Notify account
Add your Notify credentials to your .env
:
NOTIFY_URL
is not mandatory. Can be used when you want to overwrite the endpoint Notify is calling. (f.e. different url for Staging/production)
Usage
1) Load the 'notifyService' inside your services/controllers 2) Create a NotifyMessage object with the required parameters 3) Send the message
NotifyMessage
Make sure to add a recipient to the message:
All available methods
notificationType('')
: Accepts a string value.addRecipient($array)
: Accepts an array of arrays of 'name'/'recipient' keystransport('')
: Accepts a string value. if not set, it will fallback to NOTIFY_TRANSPORT in .env filelanguage('')
: Accepts a string value.params($array)
: Accepts an array of key/value parametersCc($array)
: Accepts an array of arrays of 'name'/'recipient' keysBcc($array)
: Accepts an array of arrays of 'name'/'recipient' keys
Changelog
Please see CHANGELOG for more information what has changed recently.
Testing
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.