PHPackages                             amirhxssein/persian-digit - 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. amirhxssein/persian-digit

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

amirhxssein/persian-digit
=========================

A simple tool for converting Persian digits to English digits and vice versa.

00PHP

Since Apr 20Pushed 2y ago1 watchersCompare

[ Source](https://github.com/amirhxssein/persian-digit)[ Packagist](https://packagist.org/packages/amirhxssein/persian-digit)[ RSS](/packages/amirhxssein-persian-digit/feed)WikiDiscussions main Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Persian-Digit
=============

[](#persian-digit)

Description
-----------

[](#description)

This PHP package allows you to convert Persian digits to English digits and vice versa. It's a handy tool for developers working with Persian and English digit representations.

Installation
------------

[](#installation)

You can install the package via Composer. Run the following command in your terminal:

```
composer require amirhxssein/persian-digit
```

Usage
-----

[](#usage)

```
use Amiros\PersianDigit\PersianDigit;

// Persian To English
$text = '۰۱۲۳۴۵۶۷۸۹';
$convertedText = PersianDigit::convert($text);

// English to Persian
 $text = '0123456789';
 $convertedText = PersianDigit::convert($text, "fa");
```

License
-------

[](#license)

The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

12

—

LowBetter than 0% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity19

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/65066862?v=4)[Amiros](/maintainers/amirhxssein)[@amirhxssein](https://github.com/amirhxssein)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/amirhxssein-persian-digit/health.svg)

```
[![Health](https://phpackages.com/badges/amirhxssein-persian-digit/health.svg)](https://phpackages.com/packages/amirhxssein-persian-digit)
```

###  Alternatives

[symfony/object-mapper

Provides a way to map an object to another object

361.5M55](/packages/symfony-object-mapper)[aeon-php/business-hours

Abstraction allowing to define and check against business hours

10146.1k](/packages/aeon-php-business-hours)

PHPackages © 2026

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