68publishers / notification-bundle
Nette extension for user's notifications, flash messages also with Toastr (JS library) support.
Package info
github.com/68publishers/notification-bundle
pkg:composer/68publishers/notification-bundle
Requires
- php: ^8.3
- 68publishers/smart-nette-component: ^2.0
- 68publishers/translation-bridge: ^3.0
- nette/application: ^3.1.15
- nette/caching: ^3.1
- nette/di: ^3.1.3
- nette/http: ^3.1
- nette/security: ^3.1.4
- nette/utils: ^3.2.10 || ^4.0.1
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.89
- latte/latte: ^3.0
- nette/bootstrap: ^3.1
- nette/tester: ^2.6
- roave/security-advisories: dev-latest
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-10-28 16:03:58 UTC
README
⚠️ Warning! This package does not have active support, it exists only for the historical needs of the author.
Notification Bundle
🔔 Nette extension for user's notifications, flash messages also with Toastr (JS library) support.
Installation
The best way to install 68publishers/notification-bundle is using Composer:
composer require 68publishers/notification-bundle
Requirements: PHP ^8.3, nette/application ^3.1.15, 68publishers/smart-nette-component ^2.0 and 68publishers/translation-bridge ^3.0 (the controls are translator-aware). The default templates require Latte 3.
then you can register extension into DIC:
extensions: notification_bundle: SixtyEightPublishers\NotificationBundle\DI\NotificationBundleExtension
Upgrade
From 0.3 to 0.4
- The minimal PHP version is 8.3.
68publishers/smart-nette-component^2.0and68publishers/translation-bridge^3.0are required, upgrade them together with this package.- The class
SixtyEightPublishers\NotificationBundle\Phrase\KdybyPhrasehas been removed (kdyby/translationis abandoned), usePhraseor your ownIPhraseimplementation. - The signatures use
Nette\Localization\Translator,Nette\Caching\StorageandNette\Application\Responseinstead of the deprecatedITranslator,IStorageandIResponse. These are aliases of the same interfaces, so existingIPhraseimplementations keep working. - Notifications stored in the session or cache before the upgrade are restored without changes.
Contributing
Before committing any changes, don't forget to run
vendor/bin/php-cs-fixer fix -v --dry-run
and
vendor/bin/tester ./tests