Skip to content

ProfiCloS/format

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages