Skip to content
This repository has been archived by the owner on Aug 13, 2021. It is now read-only.

πŸ’€ [DISCONTINUED] Simple string formatter for Latte. Use contributte/utils.

Notifications You must be signed in to change notification settings

contributte/latte-formatter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

13 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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.