Componette

Componette

contributte

contributte / latte-formatter

💀 [DEPRECATED] Simple string formatter for Latte. Use contributte/utils.

download-cloud-line composer require minetro/latte-formatter

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.

No release at this moment. Try to create first one.

bar-chart-fill

Statistics

download-cloud-fill
6594
star-fill
1
bug-fill
0
flashlight-fill
10d
price-tag-2-line

Badges

guide-fill

Dependencies

php (>=5.4.0)
nette/utils (>=2.3.0,<2.4.0)
Componette Componette felix@nette.org