yiirocks / toast-bootstrap5
Bootstrap 5 toast notifications backed by Yii3 session flash messages
Fund package maintenance!
1.0.1
2026-08-16 11:28 UTC
Requires
- php: >=8.3
- psr/container: ^1.0 || ^2.0
- yiisoft/html: ^3.9 || ^4.0
- yiisoft/session: ^3.0
- yiisoft/view: ^12.0
- yiisoft/yii-view-renderer: ^7.3
Requires (Dev)
- friendsofphp/php-cs-fixer: @stable
- httpsoft/http-message: @stable
- infection/infection: ^0.34.0
- phpunit/phpunit: @stable
- rector/rector: ^2.1.1
- vimeo/psalm: ^6.0
- yiirocks/svg-inline-bootstrap: ^1.0
- yiisoft/code-style: ^1.1
- yiisoft/config: ^1.6
- yiisoft/di: *
Suggests
- yiirocks/svg-inline-bootstrap: Renders an icon in each toast, resolved via yiirocks/svg-inline-bootstrap or another registered icon set.
This package is auto-updated.
Last update: 2026-08-21 20:40:04 UTC
README
Bootstrap 5 toast notifications for Yii framework 3.0, backed by
yiisoft/session flash messages. Queue a message from a
controller, render $toast in your layout, done - no manual partials, no custom JS.
Stats for Nerds
Requirements
- PHP 8.3+
- Bootstrap 5's JS bundle loaded on the page (for dismiss/autohide behavior)
Installation
composer require yiirocks/toast-bootstrap5
Optionally, add Bootstrap Icons per message type:
composer require yiirocks/svg-inline-bootstrap
Documentation
The complete reference guide is available at Yii.Rocks.