PHPackages                             mpco/english-persian-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. mpco/english-persian-number

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

mpco/english-persian-number
===========================

A simple package for convert persian numbers to english numbers and conversely

0.0.1(8y ago)11.1kMITPHP

Since Nov 11Pushed 8y ago1 watchersCompare

[ Source](https://github.com/mp-co/english-persian-number)[ Packagist](https://packagist.org/packages/mpco/english-persian-number)[ RSS](/packages/mpco-english-persian-number/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)DependenciesVersions (2)Used By (0)

english-persian-number
======================

[](#english-persian-number)

A simple package for convert persian numbers to english numbers and conversely

Install
-------

[](#install)

Via Composer

```
$ composer require mpco/english-persian-number
```

Usage
-----

[](#usage)

```
use MPCO\EnglishPersianNumber\Numbers;

echo Numbers::toPersianNumbers('1513215'); // ۱۵۱۳۲۱۵
echo Numbers::toPersianNumbers('1513215', true); // ۱,۵۱۳,۲۱۵

echo Numbers::toEnglishNumbers('۱۵۱۳۲۱۵'); // 1513215
echo Numbers::toEnglishNumbers('۱۵۱۳۲۱۵', true); // 1,513,215
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

3104d ago

### Community

Maintainers

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

---

Top Contributors

[![saeedsajadi](https://avatars.githubusercontent.com/u/3465334?v=4)](https://github.com/saeedsajadi "saeedsajadi (5 commits)")

---

Tags

englishnumbernumberspersianphptoenglishnumbersnumberpersiantotoPersiantoEnglishto persianto englishتبدیلتبدیل عددعددفارسیانگلیسی

### Embed Badge

![Health badge](/badges/mpco-english-persian-number/health.svg)

```
[![Health](https://phpackages.com/badges/mpco-english-persian-number/health.svg)](https://phpackages.com/packages/mpco-english-persian-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)[thunderer/numbase

Convert any number between arbitrary bases

242.3k](/packages/thunderer-numbase)

PHPackages © 2026

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