PHPackages                             h4kuna/number-format - 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. h4kuna/number-format

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

h4kuna/number-format
====================

Object wrapper above number\_format

v6.0.8(2y ago)1889.3k↑20.8%42MITPHPPHP &gt;=8.0CI passing

Since Oct 12Pushed 1y ago2 watchersCompare

[ Source](https://github.com/h4kuna/number-format)[ Packagist](https://packagist.org/packages/h4kuna/number-format)[ Docs](https://github.com/h4kuna/number-format)[ RSS](/packages/h4kuna-number-format/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (7)Versions (40)Used By (2)

Format
======

[](#format)

[![Latest stable](https://camo.githubusercontent.com/a8b407830361f722a25950aabbe6c50a81f9a5345f8c4611b23983251a9a6eb8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f68346b756e612f6e756d6265722d666f726d61742e737667)](https://packagist.org/packages/h4kuna/number-format)[![Downloads this Month](https://camo.githubusercontent.com/5905b3b516ab716055f90e452592fe866a3c011a09c53f978165d318824ec788/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f68346b756e612f6e756d6265722d666f726d61742e737667)](https://packagist.org/packages/h4kuna/number-format)[![Coverage Status](https://camo.githubusercontent.com/944c8209c4d88513b997ed8c0f65c67e409772f00ad2493323de2efa14a045f0/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f68346b756e612f6e756d6265722d666f726d61742f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/h4kuna/number-format?branch=master)

```
composer require h4kuna/number-format
```

The library can format numbers like percent, currencies or number with unit. Format dates and convert between order of units.

Details about changelog is moved to [file](./doc/changelog.md). Upgrade from [lower versions](./doc/upgrade.md).

- [Number](./doc/numbers.md)
- [Date](./doc/date.md)
- [Percentage](./doc/percentage.md)
- [Unit](./doc/unit.md)

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity40

Moderate usage in the ecosystem

Community14

Small or concentrated contributor base

Maturity80

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 100% 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

Every ~111 days

Recently: every ~26 days

Total

39

Last Release

748d ago

Major Versions

v2.0.1 → v3.0.02018-03-10

v1.4.0 → v3.0.12019-01-30

v3.0.5 → v4.0.02023-01-14

v4.0.0 → v5.0.02023-07-14

v5.0.4 → v6.0.02023-09-06

PHP version history (5 changes)v1.0.0PHP &gt;=5.3.2

v3.0.0PHP ^7.1

v3.0.5PHP &gt;=7.1

v4.0.0PHP &gt;=7.4

v5.0.0PHP &gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/54b4efb9b89167fa3598b1a41477b20387390f4a0fb65b447bd6bb7c30a49020?d=identicon)[h4kuna](/maintainers/h4kuna)

---

Top Contributors

[![h4kuna](https://avatars.githubusercontent.com/u/335722?v=4)](https://github.com/h4kuna "h4kuna (133 commits)")

---

Tags

datesformatternumber-converternumber-formatunits

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/h4kuna-number-format/health.svg)

```
[![Health](https://phpackages.com/badges/h4kuna-number-format/health.svg)](https://phpackages.com/packages/h4kuna-number-format)
```

###  Alternatives

[2amigos/yii2-grid-view-library

GridView Widget Extensions for Yii2.

56147.2k12](/packages/2amigos-yii2-grid-view-library)[kolyunya/yii2-map-input-widget

Yii2 map input widget. Allows you to select geographcal coordinates via a human-friendly inteface.

2836.3k4](/packages/kolyunya-yii2-map-input-widget)[tivie/command

An utility library that harmonizes OS differences and executes external programs in a safer way

1455.3k1](/packages/tivie-command)[jfcherng-roundcube/show-folder-size

A Roundcube plugin which shows folder size.

2515.2k](/packages/jfcherng-roundcube-show-folder-size)[supervisorphp/event

Listen to Supervisor events in PHP

1442.4k](/packages/supervisorphp-event)[bnomei/kirby3-recently-modified

Kirby Section to display recently modified content pages

309.3k](/packages/bnomei-kirby3-recently-modified)

PHPackages © 2026

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