proficlos / format
Formatter
Installs: 10 542
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=7.1
- nette/utils: ^2.4 || >=3.0
Requires (Dev)
- roave/security-advisories: dev-master
This package is auto-updated.
Last update: 2024-11-25 07:27:01 UTC
README
$ composer require proficlos/format
Static filter usage
use ProfiCloS\Format; echo Format::currency(1206.45, Format::CURRENCY_USD); // ... etc
Latte filters
Register in your neon config
services: filters: ProfiCloS\LatteFilterService nette.latteFactory: setup: - addFilter(format, [ @filters, format ])
Then you can use all formatters in latte
{$price|format:currency} {$quantity|format:number}