PHPackages                             minetro/latte-formatter - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. minetro/latte-formatter

Abandoned → [contributte/latte](/?search=contributte%2Flatte)ArchivedLibrary[Utility &amp; Helpers](/categories/utility)

minetro/latte-formatter
=======================

Simple string formatter for Latte

1.0.0(11y ago)16.6k1BSD-3-ClausePHPPHP &gt;=5.4.0

Since Apr 22Pushed 5mo ago2 watchersCompare

[ Source](https://github.com/contributte/latte-formatter)[ Packagist](https://packagist.org/packages/minetro/latte-formatter)[ Docs](https://github.com/minetro/formatter)[ RSS](/packages/minetro-latte-formatter/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

[![](https://camo.githubusercontent.com/cdd963194f2eb6b28f35adda901ea3385fd6307ba8d18bdd931f99b5ef141e2f/68747470733a2f2f686561746261646765722e76657263656c2e6170702f6769746875622f726561646d652f636f6e74726962757474652f6c617474652d666f726d61747465722f3f646570726563617465643d31)](https://camo.githubusercontent.com/cdd963194f2eb6b28f35adda901ea3385fd6307ba8d18bdd931f99b5ef141e2f/68747470733a2f2f686561746261646765722e76657263656c2e6170702f6769746875622f726561646d652f636f6e74726962757474652f6c617474652d666f726d61747465722f3f646570726563617465643d31)

 [![](https://camo.githubusercontent.com/a8b1cd856d7d396fdebbe46947cc3507490acc267a02361e5e53bb7b820c95c3/68747470733a2f2f62616467656e2e6e65742f62616467652f737570706f72742f6769747465722f6379616e)](https://bit.ly/ctteg) [![](https://camo.githubusercontent.com/86d6416fc04f8bcc3daa7bf881526b9953b9726b1164d05c157c8713e3a73418/68747470733a2f2f62616467656e2e6e65742f62616467652f737570706f72742f666f72756d2f79656c6c6f77)](https://bit.ly/cttfo) [![](https://camo.githubusercontent.com/5d170ab94e6d594609561e16fe0f9e4293968fbd4dfcfafc5e11efc1415ef09c/68747470733a2f2f62616467656e2e6e65742f62616467652f73706f6e736f722f646f6e6174696f6e732f463936383534)](https://contributte.org/partners.html)

 Website 🚀 [contributte.org](https://contributte.org) | Contact 👨🏻‍💻 [f3l1x.io](https://f3l1x.io) | Twitter 🐦 [@contributte](https://twitter.com/contributte)

Disclaimer
----------

[](#disclaimer)

⚠️This project is no longer being maintained. Please use [contributte/utils](https://github.com/contributte/utils).Composer[`minetro/latte-formatter`](https://packagist.org/packages/minetro/latte-formatter)Version[![](https://camo.githubusercontent.com/bfce0491f52aad3e5d4d87c8436d9266cba27737e013f163564b749edaccf222/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f762f6d696e6574726f2f6c617474652d666f726d6174746572)](https://camo.githubusercontent.com/bfce0491f52aad3e5d4d87c8436d9266cba27737e013f163564b749edaccf222/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f762f6d696e6574726f2f6c617474652d666f726d6174746572)PHP[![](https://camo.githubusercontent.com/72e0ee8230feee4587d25d314f32ea5990bad0b22f298f9baad467a9d5747487/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f7068702f6d696e6574726f2f6c617474652d666f726d6174746572)](https://camo.githubusercontent.com/72e0ee8230feee4587d25d314f32ea5990bad0b22f298f9baad467a9d5747487/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f7068702f6d696e6574726f2f6c617474652d666f726d6174746572)License[![](https://camo.githubusercontent.com/86be0dcb806cf29b72df7cce209fd4265e589dbc8c37357321ec2e1c121bd541/68747470733a2f2f62616467656e2e6e65742f6769746875622f6c6963656e73652f636f6e74726962757474652f6c617474652d666f726d6174746572)](https://camo.githubusercontent.com/86be0dcb806cf29b72df7cce209fd4265e589dbc8c37357321ec2e1c121bd541/68747470733a2f2f62616467656e2e6e65742f6769746875622f6c6963656e73652f636f6e74726962757474652f6c617474652d666f726d6174746572)Usage
-----

[](#usage)

### Register in config

[](#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
-----------

[](#development)

This package was maintained by these authors.

[ ![](https://avatars2.githubusercontent.com/u/538058?v=3&s=80)](https://github.com/f3l1x)---

Consider to [support](https://contributte.org/partners.html) **contributte** development team. Also thank you for using this package.

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance49

Moderate activity, may be stable

Popularity20

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4044d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/538058?v=4)[Milan Šulc](/maintainers/f3l1x)[@f3l1x](https://github.com/f3l1x)

---

Top Contributors

[![f3l1x](https://avatars.githubusercontent.com/u/538058?v=4)](https://github.com/f3l1x "f3l1x (12 commits)")[![petrparolek](https://avatars.githubusercontent.com/u/6066243?v=4)](https://github.com/petrparolek "petrparolek (3 commits)")[![adaamz](https://avatars.githubusercontent.com/u/4347332?v=4)](https://github.com/adaamz "adaamz (1 commits)")

---

Tags

contributteformatterlattenette-framework

### Embed Badge

![Health badge](/badges/minetro-latte-formatter/health.svg)

```
[![Health](https://phpackages.com/badges/minetro-latte-formatter/health.svg)](https://phpackages.com/packages/minetro-latte-formatter)
```

###  Alternatives

[nette/php-generator

🐘 Nette PHP Generator: generates neat PHP code for you. Supports new PHP 8.5 features.

2.3k64.2M576](/packages/nette-php-generator)[nette/robot-loader

🍀 Nette RobotLoader: high performance and comfortable autoloader that will search and autoload classes within your application.

89352.7M321](/packages/nette-robot-loader)[symplify/monorepo-builder

Not only Composer tools to build a Monorepo.

5205.3M82](/packages/symplify-monorepo-builder)[nette/component-model

⚛ Nette Component Model

28516.5M92](/packages/nette-component-model)[nette/code-checker

✅ Nette CodeChecker: A simple tool to check source code against a set of Nette coding standards.

881.7M6](/packages/nette-code-checker)[contributte/di

Extra contrib to nette/di

465.8M18](/packages/contributte-di)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
