PHPackages                             kanellov/slim-twig-flash - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. kanellov/slim-twig-flash

ActiveLibrary[Framework](/categories/framework)

kanellov/slim-twig-flash
========================

A Twig extension to access Slim Flash messages in templates

0.2.0(9y ago)25110.5k↓37.7%17[2 issues](https://github.com/kanellov/slim-twig-flash/issues)[2 PRs](https://github.com/kanellov/slim-twig-flash/pulls)11GNU GPLv3PHPPHP &gt;=5.5.0

Since Jan 20Pushed 6y ago4 watchersCompare

[ Source](https://github.com/kanellov/slim-twig-flash)[ Packagist](https://packagist.org/packages/kanellov/slim-twig-flash)[ RSS](/packages/kanellov-slim-twig-flash/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (6)Versions (3)Used By (11)

Slim Twig Flash
===============

[](#slim-twig-flash)

A Twig extension to access Slim Flash messages in templates.

**master****develop**[![Build Status](https://camo.githubusercontent.com/ff2842370124c3d36746ed8af57ce2af62b608e40ca9ab3505133b6bd8c3a19c/68747470733a2f2f7472617669732d63692e6f72672f6b616e656c6c6f762f736c696d2d747769672d666c6173682e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/kanellov/slim-twig-flash)[![Build Status](https://camo.githubusercontent.com/79aae0f7271a8ecac4510c017841cbd9b45c7053307a108b619a5a0d8784a683/68747470733a2f2f7472617669732d63692e6f72672f6b616e656c6c6f762f736c696d2d747769672d666c6173682e7376673f6272616e63683d646576656c6f70)](https://travis-ci.org/kanellov/slim-twig-flash)Install
-------

[](#install)

Via [Composer](https://getcomposer.org/)

```
composer require kanellov/slim-twig-flash

```

Requires:

- PHP 5.5.0 or newer
- Slim Framework Flash Messages 0.1.0 or newer
- Twig 1.18.0 or newer

Usage
-----

[](#usage)

- Add extension to your twig view

```
...
$view->addExtension(new Knlv\Slim\Views\TwigMessages(
    new Slim\Flash\Messages()
));
...
```

- In templates use `flash()` or `flash('some_key')` to fetch messages from Flash service

```
...

    {% for msg in flash('error') %}
    {{ msg }}
    {% endfor %}

...
```

Testing
-------

[](#testing)

```
phpunit

```

License
-------

[](#license)

The GNU GENERAL PUBLIC LICENSE Version 3. Please see [License File](LICENSE) for more information.

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity42

Moderate usage in the ecosystem

Community24

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 81.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~344 days

Total

2

Last Release

3519d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1442736?v=4)[Vassilis Kanellopoulos](/maintainers/kanellov)[@kanellov](https://github.com/kanellov)

---

Top Contributors

[![kanellov](https://avatars.githubusercontent.com/u/1442736?v=4)](https://github.com/kanellov "kanellov (9 commits)")[![mattmezza](https://avatars.githubusercontent.com/u/1915989?v=4)](https://github.com/mattmezza "mattmezza (2 commits)")

---

Tags

messageframeworktwigslimproviderviewextensionflash

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/kanellov-slim-twig-flash/health.svg)

```
[![Health](https://phpackages.com/badges/kanellov-slim-twig-flash/health.svg)](https://phpackages.com/packages/kanellov-slim-twig-flash)
```

###  Alternatives

[symfony/symfony

The Symfony PHP framework

31.4k87.4M2.2k](/packages/symfony-symfony)[slim/twig-view

Slim Framework 4 view helper built on top of the Twig 3 templating component

3738.9M247](/packages/slim-twig-view)[slim/flash

Slim Framework Flash message service provider

1532.4M104](/packages/slim-flash)[contao-community-alliance/dc-general

Universal data container for Contao

1581.4k93](/packages/contao-community-alliance-dc-general)[abydahana/aksara

Aksara is a modern, developer-friendly framework and CMS built on CodeIgniter 4, featuring rapid CRUD development, modular architecture, smart routing, flexible access control, API integration, and an AI assistant to make content management faster and smarter.

1141.2k](/packages/abydahana-aksara)[sproutcms/cms

Enterprise content management and framework

243.0k4](/packages/sproutcms-cms)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
