geniv/nette-filters

Filters extension for Nette Framework

v2.1.5 2019-09-09 17:49 UTC

This package is auto-updated.

Last update: 2024-12-10 05:17:43 UTC


README

Installation

$ composer require geniv/nette-filters

or

"geniv/nette-filters": "^2.1"

require:

"php": ">=7.0",
"nette/di": ">=2.4",
"nette/neon": ">=2.4",
"nette/utils": ">=2.4"

neon configure extension:

extensions:
    - Filters\Bridges\Nette\Extension

dateDiff use: http://php.net/manual/en/class.dateinterval.php (via format)

usage:

{$variable|addText:'tag'}

{$variable|mailto|noescape}

{$date1|dateDiff:$date2:'format'}
{$date|czechDay}
{$date|czechMonth}
{$date|czechNameDay}

{$file|chmodText}
{$file|chmodOctal}
{$file|readable}
{$file|writable}
{$file|executable}
{$file|mtime}

{$coordinates|googleMapsLink}

{$url|toUrl}
{$baseUrl.'/../adresa/meziadresa/nic/../../'|realUrl}

{$data|neon}  {*to NEON*}
{$data|fromNeon}  {*from NEON*}
{$data|json}  {*to JSON*}
{$data|fromJson}  {*from JSON*}