PHPackages                             zhandos-prog/write-spelling - 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. zhandos-prog/write-spelling

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

zhandos-prog/write-spelling
===========================

Package for writing spelling numbers

v1.2.0(1y ago)018MITPHPPHP &gt;=8.0

Since Sep 21Pushed 1y ago1 watchersCompare

[ Source](https://github.com/genov8/write-spelling-php)[ Packagist](https://packagist.org/packages/zhandos-prog/write-spelling)[ RSS](/packages/zhandos-prog-write-spelling/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (3)Versions (4)Used By (0)

WriteSpelling
=============

[](#writespelling)

Package for generating number, amount and percent in spelling

- [Requirements](#requirements)
- [Features](#features)
- [Localizations](#localizations)
- [Installation](#installation)
- [Usage](#usage)
- [Exceptions](#exceptions)
- [Backlog](#backlog)

Requirements
------------

[](#requirements)

- PHP &gt;= 8.0

Features
--------

[](#features)

- \[✓\] Generation amount in spelling
- \[✓\] Generation percent in spelling
- \[✓\] Generation number in spelling

Localizations
-------------

[](#localizations)

- \[✓\] Kazakh default
- \[✓\] Russia

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

[](#installation)

```
composer require zhandos-prog/write-spelling
```

Usage
-----

[](#usage)

#### Russian

[](#russian)

```
$amountSpelling = new \ZhandosProg\WriteSpelling\Spellings\AmountWriteSpelling();
$result1 = $amountSpelling->generate(42.42, 'ru');
var_dump($result1); // сорок два тенге сорок два тиын
$result2 = $amountSpelling->generate(42, 'ru');
var_dump($result2); // сорок два тенге

$percentSpelling = new \ZhandosProg\WriteSpelling\Spellings\PercentWriteSpelling();
$result1 = $percentSpelling->generate(42.42, 'ru')
var_dump($result1); // сорок две целых сорок две сотых процента
$result2 = $percentSpelling->generate(42, 'ru')
var_dump($resul2); // сорок два процента

$percentSpelling = new \ZhandosProg\WriteSpelling\Spellings\NumberWriteSpelling();
$result1 = $percentSpelling->generate(42.42, 'ru')
var_dump($result1); // сорок две целых сорок две сотых
$result2 = $percentSpelling->generate(42, 'ru')
var_dump($resul2); // сорок два
```

#### Kazakh

[](#kazakh)

```
$amountSpelling = new \ZhandosProg\WriteSpelling\Spellings\AmountWriteSpelling();
$result1 = $amountSpelling->generate(42.42);
var_dump($result1); // қырық екі теңге қырық екі тиын
$result2 = $amountSpelling->generate(42);
var_dump($result2); // қырық екі теңге

$percentSpelling = new \ZhandosProg\WriteSpelling\Spellings\PercentWriteSpelling();
$result1 = $percentSpelling->generate(42.42)
var_dump($result1); // қырық екі бүтін жүзден қырық екі пайыз
$result2 = $percentSpelling->generate(42)
var_dump($result2); // қырық екі пайыз

$percentSpelling = new \ZhandosProg\WriteSpelling\Spellings\NumberWriteSpelling();
$result1 = $percentSpelling->generate(42.42)
var_dump($result1); // қырық екі бүтін жүзден қырық екі
$result2 = $percentSpelling->generate(42)
var_dump($result2); // қырық екі
```

Usage with facade
-----------------

[](#usage-with-facade)

```
$facade = new ZhandosProg\WriteSpelling\WriteSpellingFacade();

// Generating amounts
echo $facade->spellAmount(1234.56, 'ru'); // одна тысяча двести тридцать четыре тенге пятьдесят шесть тиын
echo $facade->spellAmount(987.01, 'kz'); // тоғыз жүз сексен жеті бүтін бір оннан

// Generating numbers
echo $facade->spellNumber(1234, 'ru'); // одна тысяча двести тридцать четыре
echo $facade->spellNumber(456, 'kz'); // төрт жүз елу алты

// Generating percentages
echo $facade->spellPercent(85.75, 'ru'); // восемьдесят пять целых семьдесят пять сотых процента
echo $facade->spellPercent(99.9, 'kz'); // тоқсан тоғыз бүтін оннан тоғыз пайыз
```

Exceptions
----------

[](#exceptions)

- `NotSupportedException`
- `ValidationException`

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance43

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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 ~240 days

Total

3

Last Release

480d ago

Major Versions

0.1.0 → v1.1.02025-01-09

### Community

Maintainers

![](https://www.gravatar.com/avatar/0c5b7ef3869513938b8dc1801671539a1dcf8a932935ac516f3cc54ed04f10e9?d=identicon)[Genov8](/maintainers/Genov8)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/zhandos-prog-write-spelling/health.svg)

```
[![Health](https://phpackages.com/badges/zhandos-prog-write-spelling/health.svg)](https://phpackages.com/packages/zhandos-prog-write-spelling)
```

###  Alternatives

[symfony/polyfill-php84

Symfony polyfill backporting some PHP 8.4+ features to lower PHP versions

13274.8M132](/packages/symfony-polyfill-php84)[odolbeau/phone-number-bundle

Integrates libphonenumber into your Symfony application

24910.3M11](/packages/odolbeau-phone-number-bundle)[jwadhams/json-logic-php

Build rules with complex comparisons and boolean operators, serialized as JSON, and execute them in PHP

1641.7M6](/packages/jwadhams-json-logic-php)[zumba/swivel

Strategy driven feature toggles

209135.7k5](/packages/zumba-swivel)[konnco/filament-safely-delete

343.0k](/packages/konnco-filament-safely-delete)

PHPackages © 2026

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