tacoberu / latte-filters
Latte |filter supporting filtering.
v1.0.0
2024-07-09 00:18 UTC
Requires
- php: >=7.4.0
- latte/latte: >=2.4
Requires (Dev)
- phpstan/phpstan: ^1.11
- tracy/tracy: ^2.4
This package is auto-updated.
Last update: 2024-10-09 00:47:52 UTC
README
Latte |filter supporting filtering.
Installation
The best way to install tacoberu/latte-filters is using Composer:
$ composer require tacoberu/latte-filters
Then register the extension in the config file:
# app/config/config.neon latte: extensions: - Taco\Latte\FilterLatteExtension
Usage
{foreach ($items|filter: fn($x) => strlen($x->name)) as $row} ... {/foreach}
License
Latte filters is under the MIT license. See the LICENSE file for details.