wexample / symfony-notification
Notifications addressed to people: a catalogue of types, an inbox, each person's choice of channel, and once per window for reminders — sent by mail, chat or webhook
Requires
- php: >=8.5
- doctrine/doctrine-bundle: ^2.13 || ^3.0
- doctrine/orm: ^3.0
- symfony/http-client: ^7.4 || ^8.0
- symfony/http-kernel: ^7.4 || ^8.0
- symfony/messenger: ^7.4 || ^8.0
- symfony/notifier: ^7.4 || ^8.0
- symfony/routing: ^7.4 || ^8.0
- symfony/security-core: ^7.4 || ^8.0
- symfony/uid: ^7.4 || ^8.0
- wexample/symfony-helpers: >=18.0.2
- wexample/symfony-loader: >=25.0.1
- wexample/symfony-mail: >=3.0.4
- wexample/symfony-translations: >=17.0.1
Requires (Dev)
- phpunit/phpunit: ^13
- symfony/browser-kit: ^7.4 || ^8.0
- symfony/security-bundle: ^7.4 || ^8.0
- wexample/symfony-testing: >=2.0.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Version: 2.1.5
Notifications addressed to people: a catalogue of types, an inbox, each person's choice of channel, and once per window for reminders — sent by mail, chat or webhook
Table of Contents
Installation
composer require wexample/symfony-notification
// config/bundles.php Wexample\SymfonyNotification\WexampleSymfonyNotificationBundle::class => ['all' => true],
Notifications are sent through Messenger: framework.messenger must be on — synchronous unless DeliverNotificationsMessage is routed to a transport.
The bundle maps two tables, notification (the inbox) and notification_preference (each recipient's choices): generate a migration after installing.
bin/console doctrine:migrations:diff bin/console doctrine:migrations:migrate
Nothing is sent until categories are declared — see the usage page. The pages — the inbox, the preferences, the page a mail's unsubscribe link opens — are symfony-notification-ds's.