PHPackages                             andrey-helldar/digittext - 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. andrey-helldar/digittext

Abandoned → [kwn/number-to-words](/?search=kwn%2Fnumber-to-words)ArchivedLibrary[Utility &amp; Helpers](/categories/utility)

andrey-helldar/digittext
========================

The module allows to translate numbers into a text equivalent

5.0.2(7y ago)2214.5k—0%3MITPHPPHP &gt;=7.1

Since Nov 9Pushed 6y ago6 watchersCompare

[ Source](https://github.com/andrey-helldar/DigitText)[ Packagist](https://packagist.org/packages/andrey-helldar/digittext)[ Docs](http://ai-rus.com)[ RSS](/packages/andrey-helldar-digittext/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (7)Versions (25)Used By (0)

DigitText for Laravel 5.5+
--------------------------

[](#digittext-for-laravel-55)

The module allows to translate numbers into a text equivalent. This is important in the billing.

[![digittext](https://user-images.githubusercontent.com/10347617/40197725-f2138bfe-5a1c-11e8-99be-8a42715516c9.png)](https://user-images.githubusercontent.com/10347617/40197725-f2138bfe-5a1c-11e8-99be-8a42715516c9.png)

 [![StyleCI](https://camo.githubusercontent.com/b130af4ed9a065ab2d4c0830e268d227ec6dc16f780d3ccccf6716c849619cf7/68747470733a2f2f7374796c6563692e696f2f7265706f732f34353734363938352f736869656c64)](https://styleci.io/repos/45746985) [![Total Downloads](https://camo.githubusercontent.com/5c80697eb4c36b6b9259bef83feb6d28014a46b58919bfc4915356ae5cc675ab/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616e647265792d68656c6c6461722f4469676974546578742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/andrey-helldar/DigitText) [![Latest Stable Version](https://camo.githubusercontent.com/ace911bab6cc7e7a35fe705124c3b73a20f4c1320f3b24779a2d1a5f9fc22a64/68747470733a2f2f706f7365722e707567782e6f72672f616e647265792d68656c6c6461722f4469676974546578742f762f737461626c653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/andrey-helldar/DigitText) [![Latest Unstable Version](https://camo.githubusercontent.com/4b544bff56f821e16689a5aa4973438723f5a763c636c946ec92f83fd42ade79/68747470733a2f2f706f7365722e707567782e6f72672f616e647265792d68656c6c6461722f4469676974546578742f762f756e737461626c653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/andrey-helldar/DigitText) [![License](https://camo.githubusercontent.com/027c9502de50e4745cbae0f81ec4213dbc0a66f9a8dda4faa894030bf34bf37c/68747470733a2f2f706f7365722e707567782e6f72672f616e647265792d68656c6c6461722f4469676974546578742f6c6963656e73653f666f726d61743d666c61742d737175617265)](LICENSE)

Attention!
----------

[](#attention)

This package is **abandoned** and no longer maintained. The author suggests using the [kwn/number-to-words](https://github.com/kwn/number-to-words) package instead.

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

[](#installation)

To get the latest version of DigitText, simply require the project using [Composer](https://getcomposer.org/):

```
$ composer require andrey-helldar/digittext
```

Instead, you may of course manually update your require block and run `composer update` if you so choose:

```
{
    "require": {
        "andrey-helldar/digittext": "^5.0"
    }
}
```

If you don't use auto-discovery, add the ServiceProvider to the providers array in `config/app.php`:

```
Helldar\DigitText\ServiceProvider::class,
```

Now, use `DigitText` Facade or `digit_text()` helper.

Documentation
-------------

[](#documentation)

You can use a helper

```
digit_text($number = 0, string $lang = 'en', bool $is_currency = false);
```

or go directly to a class "Helldar\\DigitText\\DigitText":

```
(new DigitText)
    ->get($number = 0, string $lang = 'en', bool $is_currency = false);
```

Example:

```
echo digit_text(null);          // zero
echo digit_text(64.23);         // sixty four
echo digit_text(2866);          // two thousands eight hundred sixty six
echo digit_text(2866, 'ru');    // две тысячи восемьсот шестьдесят шесть

echo digit_text(0, 'en', true);     // zero dollar
echo digit_text(64.23, 'en', true); // sixty four dollars 23 cents
echo digit_text(2866, 'en', true);  // two thousands eight hundred sixty six dollars
echo digit_text(2866, 'ru', true);  // две тысячи восемьсот шестьдесят шесть руб
```

Support Languages
-----------------

[](#support-languages)

```
EN - English
DE - Deutsch
RU - Русский
UK - Український

```

Copyright and License
---------------------

[](#copyright-and-license)

DigitText was written for the Laravel framework 5.5 or later, and is released under the [MIT License](LICENSE).

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 80% 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 ~54 days

Recently: every ~132 days

Total

20

Last Release

2802d ago

Major Versions

1.0.6 → 2.0.12016-02-04

2.0.3 → 3.12016-11-28

3.1.3 → 4.0.02017-03-27

4.0.1 → 5.0.02017-09-09

PHP version history (5 changes)1.0.0PHP &gt;=5.6

2.0.1PHP &gt;=5.5.9

3.1PHP &gt;=5.6.4

5.0.0PHP &gt;=7.0

5.0.2PHP &gt;=7.1

### Community

Maintainers

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

---

Top Contributors

[![dkulyk](https://avatars.githubusercontent.com/u/370042?v=4)](https://github.com/dkulyk "dkulyk (4 commits)")[![goszowski](https://avatars.githubusercontent.com/u/10208931?v=4)](https://github.com/goszowski "goszowski (1 commits)")

---

Tags

currency-transformernumbernumber-to-wordsnumber-transformerstringtext-equivalenttranslates-numberswordsdatetimetimedateDigitText

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/andrey-helldar-digittext/health.svg)

```
[![Health](https://phpackages.com/badges/andrey-helldar-digittext/health.svg)](https://phpackages.com/packages/andrey-helldar-digittext)
```

###  Alternatives

[league/period

Time range API for PHP

7335.4M21](/packages/league-period)[brick/date-time

Date and time library

3623.3M60](/packages/brick-date-time)[aeon-php/calendar

PHP type safe, immutable calendar library

2079.7M16](/packages/aeon-php-calendar)[tplaner/when

Date/Calendar recursion library.

5261.0M5](/packages/tplaner-when)[kartik-v/php-date-formatter

A Javascript datetime formatting and manipulation library using PHP date-time formats.

461.5M3](/packages/kartik-v-php-date-formatter)[dater/dater

Compact PHP library for working with date/time in different formats &amp; timezones.

14282.3k](/packages/dater-dater)

PHPackages © 2026

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