Contributte Latte-formatter

Website 🚀 contributte.org | Contact 👨🏻‍💻 f3l1x.io | Twitter 🐦 @contributte

# Disclaimer

⚠️ This project is no longer being maintained. Please use contributte/utils (opens new window).
Composer minetro/latte-formatter (opens new window)
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)
1
2
3
4
5
6
7
8
9
10
11
12
13

# Development

This package was maintain by these authors.


Consider to support (opens new window) contributte development team. Also thank you for being used this package.