proficlos/format

v1.1.2 2023-08-25 04:54 UTC

This package is auto-updated.

Last update: 2024-10-25 07:18:47 UTC


README

$ 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}