Download the PHP package mkebza/notificator-bundle without Composer
On this page you can find all versions of the php package mkebza/notificator-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mkebza/notificator-bundle
More information about mkebza/notificator-bundle
Files in mkebza/notificator-bundle
Package notificator-bundle
Short Description Symfony bundle for handling notification to user through different handlers
License MIT
Informations about the package notificator-bundle
NotificatorBundle
This is simple bundle to manage notifications though different channels.
Installation
Applications that use Symfony Flex
Open a command console, enter your project directory and execute:
Applications that don't use Symfony Flex
Step 1: Download the Bundle
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.
Step 2: Enable the Bundle
Then, enable the bundle by adding it to the list of registered bundles
in the app/AppKernel.php
file of your project:
Configuration
You need to define at least one handler, otherwise your messeges aren't gonna be send. For handler is mandatory to define service handler.
Sending notification
First you have to implement your notification class, which has to implement
NotificationInterface
and service has to be tagged with mkebza_notificator.notification
Then you can send your notification. Parameter to notifable is configuration for each channel.
You can have your objects implement MKebza\Notificator\NotifiableInterface
and then you can call
Handlers
New handlers can be implemented, handler has to implement MKebza\Notificator\Handler\NotificationHandlerInterface
All versions of notificator-bundle with dependencies
symfony/dependency-injection Version ~3.4|~4.0
symfony/swiftmailer-bundle Version ^3.1
symfony/event-dispatcher Version ~3.4|~4.0
symfony/config Version ~3.4|~4.0
symfony/options-resolver Version ~3.4|~4.0