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

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

polyglot/number
===============

PHP Polyglot number

v1.0.0(2y ago)0242MITPHPPHP ^7.4 || ^8.0

Since Sep 8Pushed 2y agoCompare

[ Source](https://github.com/php-polyglot/number)[ Packagist](https://packagist.org/packages/polyglot/number)[ Fund](https://donation.ddrv.ru)[ RSS](/packages/polyglot-number/feed)WikiDiscussions 1.x Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (2)

polyglot/number
===============

[](#polyglotnumber)

> A [polyglot](https://packagist.org/packages/polyglot/) number.

Install
=======

[](#install)

```
composer require polyglot/number:^1.0
```

Using
=====

[](#using)

```
$number = new \Polyglot\Number\Number('1.20050c3');

$n = $number->number(); // returns 1200.5 (absolute value)
$i = $number->integer(); // returns 1200 (integer digits)
$v = $number->fractionDigits(); // returns 2 (number of visible fraction digits, with trailing zeros)
$w = $number->fractionDigits(false); // returns 1 (number of visible fraction digits, without trailing zeros)
$f = $number->fraction(); // returns 50 (visible fraction digits, with trailing zeros, expressed as an integer)
$t = $number->fraction(false); // returns 5 (visible fraction digits, without trailing zeros, expressed as an integer)
$c = $number->exponent(); // returns 3 (compact decimal exponent value)
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity48

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

Every ~0 days

Total

2

Last Release

980d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

numberpolyglot

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[kwn/number-to-words

Multi language standalone PHP number to words converter. Fully tested, open for extensions and new languages.

4235.0M21](/packages/kwn-number-to-words)[php-decimal/php-decimal

Correctly-rounded arbitrary precision decimal floating point

781.0M9](/packages/php-decimal-php-decimal)[wilon/php-number2chinese

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

14632.0k1](/packages/wilon-php-number2chinese)[hekmatinasser/notowo

This Package helps developers change number to word for all language on Laravel freamwork PHP

32510.4k2](/packages/hekmatinasser-notowo)[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)[data-values/number

Numerical value objects, parsers and formatters

18303.0k14](/packages/data-values-number)

PHPackages © 2026

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