nti / notification-bundle
Symfony 2 notification bundle.
Installs: 1 858
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 3
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.6
- guzzlehttp/guzzle: >=6.0
- jms/serializer-bundle: >=2.0
- symfony/framework-bundle: ~2.8|~3.0|~4.0
This package is auto-updated.
Last update: 2024-10-21 21:55:58 UTC
README
This bundle provide capability to register and send notifications throw multiple applications.
Installation
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:
$ composer require nti/notification-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:
class AppKernel extends Kernel { public function registerBundles() { $bundles = array( new NTI\NotificationBundle\NotificationBundle(), ); } }
Step 3: Configuration
Fill the bundle configuration in the config.yml
file.
nti_notification: user_destination_get_method: getEmail user_authentication_roles: [ROLE_USER]
The bundle use your User class entity as a notification destination so you can easily set your security authentication role and unique property get method that you want to use as destination identifier.