Componette

Componette

download-cloud-line composer require proficlos/format

Install with composer

$ composer require proficlos/format

Static filter usage

use ProfiCloS\Format;

echo Format::currency(1206.45, Format::CURRENCY_USD);
// ... etc

Latte filters

Register in your neon config

services:
	filters: ProfiCloS\LatteFilterService
	nette.latteFactory:
		setup:
			- addFilter(format, [ @filters, format ])	

Then you can use all formatters in latte

{$price|format:currency}

{$quantity|format:number}

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

bar-chart-fill

Statistics

download-cloud-fill
2159
star-fill
0
bug-fill
0
flashlight-fill
2.3y
price-tag-2-line

Badges

guide-fill

Dependencies

php (>=7.1)
nette/utils (^2.4 || ^3.0)
Componette Componette felix@nette.org