PHPackages                             hctilg/number-to-persian-text - 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. [API Development](/categories/api)
4. /
5. hctilg/number-to-persian-text

ActiveLibrary[API Development](/categories/api)

hctilg/number-to-persian-text
=============================

converts numbers to persian text.

v1.0(2y ago)30901MITPHPPHP &gt;=5.4.0

Since Sep 15Pushed 2y ago1 watchersCompare

[ Source](https://github.com/hctilg/number-to-text)[ Packagist](https://packagist.org/packages/hctilg/number-to-persian-text)[ RSS](/packages/hctilg-number-to-persian-text/feed)WikiDiscussions main Synced 1mo ago

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

number-to-text
==============

[](#number-to-text)

converts numbers to persian text.

Usage
-----

[](#usage)

### Library

[](#library)

Simply use:

```
// checking the exists Library.
if (!file_exists("number-to-text.php")) {
  copy('https://raw.githubusercontent.com/hctilg/number-to-text/main/number-to-text.php', 'number-to-text.php');
}

// require Library.
require_once('number-to-text.php');

$input = '';

$output = number_to_text($input);

echo "Text: $output";
```

### API

[](#api)

Send requests to `/number-to-text.php`.

MethodParameterGET/POST`string` number[![Preview](images/preview-api.jpg)](images/preview-api.jpg)

### CLI

[](#cli)

run php script:

```
php number-to-text.php
```

[![Preview](images/preview-cli.jpg)](images/preview-cli.jpg)

Test
----

[](#test)

### Web

[](#web)

Go to the `./number-to-text` folder and run php localhost:

```
php -S localhost:6040
```

then open the following url

```
http://localhost:6040/test.php

```

[![Preview](images/test-web.jpg)](images/test-web.jpg)

### CLI

[](#cli-1)

run php script:

```
php test.php
```

[![Preview](images/test-cli.jpg)](images/test-cli.jpg)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity38

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

970d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

apinumber-to-textpersian-nlpphp

### Embed Badge

![Health badge](/badges/hctilg-number-to-persian-text/health.svg)

```
[![Health](https://phpackages.com/badges/hctilg-number-to-persian-text/health.svg)](https://phpackages.com/packages/hctilg-number-to-persian-text)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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