Componette

Componette

wavevision

wavevision / latte-filters 1.1.1

☕️ Extra filters for Latte (@nette) templating engine

download-cloud-line composer require wavevision/latte-filters

Latte Filters

CI Coverage Status PHPStan

Set of extra nette/latte filters.

Installation

Via Composer

composer require wavevision/latte-filters

Contents

  • CzechMonth – render months translated to Czech (incl. inflected version)
  • Email – render ProtectedEmail addresses (HEX encoded)
  • Mtime – render filenames with timestamp appeneded to bust caches

Usage

To use all filters, simply include common.neon from this package in your project config:

includes:
  - %vendorDir%/wavevision/latte-filters/config/common.neon

Alternatively, you can register only wanted filters separately, e.g.:

services:
  - Wavevision\LatteFilters\CzechMonth\CzechMonth

  nette.latteFactory:
    setup:
      - addFilter('czechMonth', [@Wavevision\LatteFilters\CzechMonth\CzechMonth, 'process'])
bar-chart-fill

Statistics

download-cloud-fill
1544
star-fill
2
bug-fill
0
flashlight-fill
187d
price-tag-2-line

Badges

guide-fill

Dependencies

php (>=7.4)
Componette Componette felix@nette.org