Website ๐ contributte.org | Contact ๐จ๐ปโ๐ป f3l1x.io | Twitter ๐ฆ @contributte
This project is no longer being maintained. Please use contributte/utils. |
---|
Composer | minetro/latte-formatter |
---|---|
Version | |
PHP | |
License |
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)
This package was maintain by these authors.
Consider to support contributte development team. Also thank you for being used this package.