Componette

Componette

contributte

contributte / latte-formatter

๐Ÿ’€ [DISCONTINUED] 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.

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