PHPackages                             k-ko/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. k-ko/slim-twig-flash

ActiveLibrary[Framework](/categories/framework)

k-ko/slim-twig-flash
====================

A Twig 3 extension to access Slim Flash messages in templates

2.0.0(4y ago)0211[1 PRs](https://github.com/K-Ko/slim-twig-flash/pulls)GPL-3.0-or-laterPHPPHP &gt;=7.2

Since Jan 20Pushed 4y agoCompare

[ Source](https://github.com/K-Ko/slim-twig-flash)[ Packagist](https://packagist.org/packages/k-ko/slim-twig-flash)[ RSS](/packages/k-ko-slim-twig-flash/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (6)Versions (7)Used By (0)

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

[](#slim-twig-flash)

A Twig 3 extension to access Slim Flash messages in templates.

Install
-------

[](#install)

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

```
composer require k-ko/slim-twig-flash

```

Requires:

- PHP 7.2 or newer
- Slim Framework Flash Messages 0.1.0 or newer
- Twig 3 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

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 60% 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 ~419 days

Recently: every ~438 days

Total

6

Last Release

1713d ago

Major Versions

0.2.0 → 1.0.02021-10-15

1.1.0 → 2.0.02021-10-16

PHP version history (2 changes)0.1.0PHP &gt;=5.5.0

1.0.0PHP &gt;=7.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/327396?v=4)[Knut Kohl](/maintainers/K-Ko)[@K-Ko](https://github.com/K-Ko)

---

Top Contributors

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

---

Tags

messageframeworkslimproviderviewextensionflashtwig3

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

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

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

###  Alternatives

[symfony/symfony

The Symfony PHP framework

31.4k86.9M2.2k](/packages/symfony-symfony)[kanellov/slim-twig-flash

A Twig extension to access Slim Flash messages in templates

22109.2k11](/packages/kanellov-slim-twig-flash)[slim/flash

Slim Framework Flash message service provider

1532.3M101](/packages/slim-flash)[slim/twig-view

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

3738.4M228](/packages/slim-twig-view)[slim/php-view

Render PHP view scripts into a PSR-7 Response object.

2749.8M100](/packages/slim-php-view)[abydahana/aksara

Aksara is a CodeIgniter based CRUD Toolkit you can use to build complex applications become shorter, secure and more reliable just in a few lines of code. Serving both CMS or Framework, produce both HEADLESS (RESTful API) or TRADITIONAL (Browser Based), just by writing single controller. Yet it's reusable, scalable and ready to use!

1111.2k](/packages/abydahana-aksara)

PHPackages © 2026

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