Download the PHP package h4kuna/date-filter without Composer
On this page you can find all versions of the php package h4kuna/date-filter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download h4kuna/date-filter
More information about h4kuna/date-filter
Files in h4kuna/date-filter
Package date-filter
Short Description Add option define own filters based on date for latte.
License MIT
Homepage https://github.com/h4kuna/date-filter
Informations about the package date-filter
Date filter
Náhrada
Koukněte na knihovnu Format konkrétně na formátování datumů. Doplněk by vás měl odstínit od manuálního vypisování a skládání objektů, na to momentálně nemám kapacitu, tak vám ukážu jak to dělat ručně ve třech krocích.
- nainstalovat knihovnu
composer require h4kuna/number-format
-
sepsat si vlastní sadu formátů v neonu
- v šabloně pak bude fungovat
Require PHP 5.4+.
This extension is for php Nette framework.
Installation to project
The best way to install h4kuna/date-filter is using composer:
How to use
Register extension for Nette in neon config file.
Now show you how set new date filters and other variants.
You can overwrite default latte filter date!
For define format use letters from table date function.
You can set own filters groups like:
First group is default. Now in latte you can use:
You can forget on this and duplicate on every place where you need.
For different country you can change date format. And change it by:
If you don't change locale, then date letters (D, l (lower L), F, M) are everytime in english language, ok here is example how change it.
First group is default. Change group like: