PHPackages                             sergeyakovlev/int-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. sergeyakovlev/int-format

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

sergeyakovlev/int-format
========================

The function formats an integer with grouped thousands and optionally +/− signs

1.0.0(3y ago)02MITPHPPHP &gt;=7.4

Since Jun 5Pushed 1y ago1 watchersCompare

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

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

IntFormat
=========

[](#intformat)

The function formats an integer with grouped thousands and optionally +/− signs.

Install
-------

[](#install)

Install via [Composer](https://getcomposer.org/):

```
$ composer require sergeyakovlev/int-format
```

Usage
-----

[](#usage)

```
use function SergeYakovlev\IntFormat\int_format;

$value = -1000000;

// Use cases are equivalent
$formatted_value = int_format($value);
$formatted_value = int_format($value, '&nbsp;', '', '&minus;');
// $formatted_value = "&minus;1&nbsp;000&nbsp;000"
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

1443d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/750c80b87297ae684525a6cb6e3296c08509673f3b1911122c00a6f7757dfa58?d=identicon)[sergeyakovlev](/maintainers/sergeyakovlev)

---

Top Contributors

[![sergeyakovlev](https://avatars.githubusercontent.com/u/7995774?v=4)](https://github.com/sergeyakovlev "sergeyakovlev (2 commits)")

---

Tags

digitformatintnumberphpphpformatnumberintdigit

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sergeyakovlev-int-format/health.svg)

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

###  Alternatives

[wilon/php-number2chinese

PHP数字转为汉字描述、人民币大写方法。

14632.0k1](/packages/wilon-php-number2chinese)[hallindavid/manny

a package of manipulators that hopefully come in useful for those of us who always forget regex when we need it (manny is short for manipulation)

38103.3k2](/packages/hallindavid-manny)

PHPackages © 2026

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