domrafacz / slim-twig-flash-messages
A Twig extension to access Slim Flash messages in templates
Installs: 9
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/domrafacz/slim-twig-flash-messages
Requires
- php: >=7.4.0
- slim/flash: >=0.4.0
- slim/twig-view: >=2.0
- twig/twig: >=2.0
Requires (Dev)
- phpunit/phpunit: ^9.0
This package is auto-updated.
Last update: 2025-09-18 05:00:46 UTC
README
This Twig extension lets you use Slim-Flash package functions inside Twig templates
Install
composer require domrafacz/slim-twig-flash-messages
Requirements
- PHP >= 7.4.0
- slim/flash >= 0.4.0
- Slim 3.x or Slim 4.x
- Twig 2.x or Twig 3.x
Usage
Below example should be adjusted to specific Slim framework installation
$twig->addExtension(new Slim\Twig\FlashMessages( $container['flash'] ));
Authors
- Dominik Rafacz
License
This project is licensed under the MIT License - see the LICENSE file for details