PHPackages                             demroos/notification-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. demroos/notification-bundle

ActiveSymfony-bundle[Mail &amp; Notifications](/categories/mail)

demroos/notification-bundle
===========================

Synfony bundle for controll notification

1.1.5(5y ago)01901MITPHPPHP ^8.0CI failing

Since Sep 19Pushed 5y ago1 watchersCompare

[ Source](https://github.com/demroos/notification-bundle)[ Packagist](https://packagist.org/packages/demroos/notification-bundle)[ RSS](/packages/demroos-notification-bundle/feed)WikiDiscussions develop Synced 3d ago

READMEChangelogDependencies (9)Versions (8)Used By (0)

Notification Bundle
===================

[](#notification-bundle)

### Register Entity and Receive Notifications

[](#register-entity-and-receive-notifications)

Note: incoming notifications are set up by default to log to "notifications" channel

To work with notification receiver manager you will need a messenger bundle:

```
composer require symfony/messenger
```

Configure Symfony's messenger in file `config/packages/messenger.yaml`

Configure NotificationManager: Add to config `notification.yml`

```
notification:
  entities:
    - { name: entity_name, class: App\NotificationClass }
```

Change NotificationSenderInterface implementation class

```
notification:
    sender: 'Class implement NotificationSenderInterface'
```

Create a controller class for your incoming notifications. The controller will handle ALL incoming notifications and dispatch a corresponding message using the above configuration.

```
