PHPackages                             ngomafortuna/number-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. ngomafortuna/number-formatter

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

ngomafortuna/number-formatter
=============================

Simple number formatter (Formatador simples de número)

v0.0.1(11mo ago)03BSD-3-ClausePHPPHP &gt;=8.0

Since Jun 4Pushed 11mo agoCompare

[ Source](https://github.com/ngomaf/number-formatter)[ Packagist](https://packagist.org/packages/ngomafortuna/number-formatter)[ RSS](/packages/ngomafortuna-number-formatter/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Number formatter
================

[](#number-formatter)

Simple number formatter (Formatador simples de número)

This component have two features:

- format: to formatter int or float number with thousands separator. Return object with two parameters
- formatShort: equal to `formart`, bat in short format
- byte: to formate int or float number in bit multple. Retorn one string

Require
-------

[](#require)

Necessary PHP 8.0 or more (Necessário PHP 8.0 ou superior)

Install
-------

[](#install)

composer require ngomafortuna/number-formatter

Syntax and mode of use
----------------------

[](#syntax-and-mode-of-use)

```
$number = new NumberFormatter;

var_dump($number->byte(1000000));
```

Example
-------

[](#example)

```
use Ngomafortuna\NumberFormatter\NumberFormatter;

$value = 12000000;

$number = new NumberFormatter;

var_dump($number->format($value));
var_dump($number->formatShort($value));
var_dump($number->byte($value));
```

Results

```
class stdClass#2 (2) {
  public $short =>
  string(13) "+ 1 trilhões"
  public $full =>
  string(18) "10.000.000.000.000"
}

class stdClass#2 (2) {
  public $short =>
  string(3) "+1T"
  public $full =>
  string(18) "10.000.000.000.000"
}

string(4) "9 TB"
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance52

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 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

340d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bf130e70a6c13b7f54c1f1d9aa4231bc04f544afa931e9e602cdfac3a6891e7a?d=identicon)[ngomafortuna](/maintainers/ngomafortuna)

---

Top Contributors

[![ngomaf](https://avatars.githubusercontent.com/u/172862580?v=4)](https://github.com/ngomaf "ngomaf (6 commits)")

### Embed Badge

![Health badge](/badges/ngomafortuna-number-formatter/health.svg)

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

###  Alternatives

[fntneves/laravel-transactional-events

Transaction-aware Event Dispatcher for Laravel

3202.6M2](/packages/fntneves-laravel-transactional-events)[ipinfo/ipinfo

The official PHP library for IPinfo, the most reliable, accurate, and in-depth source of IP address data available anywhere. We process terabytes of data to produce our custom IP geolocation, company, carrier and IP type data sets. Visit our developer docs at https://ipinfo.io/developers.

2891.2M11](/packages/ipinfo-ipinfo)[craftcms/plugin-installer

Craft CMS Plugin Installer

283.3M4](/packages/craftcms-plugin-installer)[typo3/cms-recordlist

TYPO3 CMS Recordlist - Lists database records in the TYPO3 backend module (Web&gt;List).

178.0M48](/packages/typo3-cms-recordlist)[broadway/uuid-generator

UUID generator for broadway/broadway.

202.1M11](/packages/broadway-uuid-generator)[kohkimakimoto/background-process

A minimum library to run background processes asynchronously.

361.4k](/packages/kohkimakimoto-background-process)

PHPackages © 2026

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