geniv / nette-filters
Filters extension for Nette Framework
Installs: 1 073
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=7.0
- nette/di: >=2.4
- nette/neon: >=2.4
- nette/utils: >=2.4
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*}