markocupic / contao-frontend-user-notification
Display notifications to logged in frontend users (Contao 5.3 and Contao 6)
Package info
github.com/markocupic/contao-frontend-user-notification
Type:contao-bundle
pkg:composer/markocupic/contao-frontend-user-notification
1.1.1
2026-10-09 20:31 UTC
Requires
- php: ^8.2
- contao/core-bundle: ^5.3 || ^6.0
- doctrine/dbal: ^3.6 || ^4.0
- markocupic/contao-component-vue-js: ^3.3
- ramsey/uuid: ^3.0 || ^4.0
- symfony/config: ^6.4 || ^7.0 || ^8.0
- symfony/dependency-injection: ^6.4 || ^7.0 || ^8.0
- symfony/event-dispatcher: ^6.4 || ^7.0 || ^8.0
- symfony/event-dispatcher-contracts: ^3.0
- symfony/framework-bundle: ^6.4 || ^7.0 || ^8.0
- symfony/http-foundation: ^6.4 || ^7.0 || ^8.0
- symfony/http-kernel: ^6.4 || ^7.0 || ^8.0
- symfony/routing: ^6.4 || ^7.0 || ^8.0
- symfony/security-bundle: ^6.4 || ^7.0 || ^8.0
- twig/twig: ^3.8
Requires (Dev)
- contao/manager-plugin: ^2.12
- contao/test-case: ^5.3 || ^6.0
Suggests
None
Provides
None
Conflicts
- contao/manager-plugin: <2.0 || >=3.0
Replaces
None
README
Frontend User Notification Extension for the Contao CMS
This Contao extension can be used to display notifications to logged-in users in the Contao frontend.
All you have to do is...
Embed a frontend module of the type Member Notifications in your Contao layout.
You can generate the message in the backend or have it generated programmatically.
// Add the notification programmatically $type = 'happy-birthday-msg'; /** @var \Contao\FrontendUser $user */ $user = $this->getUser(); // Select a user who should have a notification displayed in the frontend. $messageTitle = 'Happy Birthday' $messageText = 'bla, bla, bla'; $endOfLifeTimeStamp = time() + 7*24*3600; // 1 week new Markocupic\ContaoFrontendUserNotification\Notification\DefaultFrontendUserNotification($user, $type, $messageTitle, $messageText, )
Dependencies
To use Bootstrap toast for the notifications you have to embed Bootstrap manually.
Requirements
- Contao 5.3 or later, including Contao 6
- PHP 8.2 or later

