This Twig extension lets you use Slim-Flash package functions inside Twig templates
composer require domrafacz/slim-twig-flash-messages
- PHP >= 7.4.0
- slim/flash >= 0.4.0
- Slim 3.x or Slim 4.x
- Twig 2.x or Twig 3.x
Below example should be adjusted to specific Slim framework installation
$twig->addExtension(new Slim\Twig\FlashMessages(
$container['flash']
));
- Dominik Rafacz
This project is licensed under the MIT License - see the LICENSE file for details