PHPackages                             jurchiks/numbers2words\_twig - 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. jurchiks/numbers2words\_twig

ActiveLibrary

jurchiks/numbers2words\_twig
============================

Twig extension for jurchiks/numbers2words

1.0.2(5y ago)06MITPHPPHP &gt;=7.4.0CI failing

Since Jul 22Pushed 5y agoCompare

[ Source](https://github.com/jurchiks/numbers2words_twig)[ Packagist](https://packagist.org/packages/jurchiks/numbers2words_twig)[ RSS](/packages/jurchiks-numbers2words-twig/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (3)Versions (4)Used By (0)

numbers2words\_twig
===================

[](#numbers2words_twig)

Twig extension for [jurchiks/numbers2words](https://github.com/jurchiks/numbers2words).

### Installation:

[](#installation)

```
composer require jurchiks/numbers2words_twig

```

### Configuration:

[](#configuration)

```
use \Twig\Environment;
use \js\tools\numbers2words\Speller;
use \js\tools\numbers2words\twig\SpellerExtension;

$extension = new SpellerExtension(Speller::LANGUAGE_ENGLISH, Speller::CURRENCY_EURO);
$extension->requireDecimal = true|false; // default true
$extension->spellDecimal = true|false; // default false

$twig = new Environment($loader);
$twig->addExtension($extension);
```

To enable the Twig extension in Symfony, add it in `config/services.yaml` (or its equivalent):

```
services:
    js\tools\numbers2words\twig\SpellerExtension:
        tags: [twig.extension]
        arguments: ['en', 'EUR']
        properties: # optional
            requireDecimal: true
            spellDecimal: false
```

### Usage:

[](#usage)

```
{{ spellNumber(123) }}
{{ spellCurrency(123.45) }}
{{ spellCurrencyShort(123.45) }}
{{ spellNumber(123, 'ru') }}
{{ spellCurrency(123.45, null, 'RUR') }}
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity57

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

3

Last Release

2120d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

currencynumbersspell

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jurchiks-numbers2words-twig/health.svg)

```
[![Health](https://phpackages.com/badges/jurchiks-numbers2words-twig/health.svg)](https://phpackages.com/packages/jurchiks-numbers2words-twig)
```

###  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)[jurchiks/numbers2words

It spells numbers (and currencies)!

20172.1k3](/packages/jurchiks-numbers2words)

PHPackages © 2026

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