minetro / latte-formatter
Simple string formatter for Latte
Fund package maintenance!
f3l1x
contributte.org/partners.html
Requires
- php: >=5.4.0
- nette/utils: >=2.3.0,<2.4.0
Requires (Dev)
- nette/tester: ~1.3.0
This package is not auto-updated.
Last update: 2022-02-01 12:47:10 UTC
README
Website 🚀 contributte.org | Contact 👨🏻💻 f3l1x.io | Twitter 🐦 @contributte
Disclaimer
⚠️ | This project is no longer being maintained. Please use contributte/utils. |
---|
Composer | minetro/latte-formatter |
---|---|
Version | |
PHP | |
License |
Usage
Register in config
Register in your config file (e.q. config.neon).
services: formatter.money: class: Minetro\Formatter\NumberFormatter('Kc') formatter.weight: class: Minetro\Formatter\NumberFormatter('kg', '~') setup: - setThousand(NULL) - setDecimal(0) nette.latteFactory: setup: - addFilter(money, [@formatter.number,format]) # or - addFilter(money, @formatter.number::format)
Development
This package was maintain by these authors.
Consider to support contributte development team. Also thank you for being used this package.