PHPackages                             rahulmac/curspell - 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. rahulmac/curspell

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

rahulmac/curspell
=================

A package to spell currency amounts

v1.0.0(8mo ago)36MITPHPPHP ^8.0CI passing

Since Feb 22Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/Rahul-Mac/curspell)[ Packagist](https://packagist.org/packages/rahulmac/curspell)[ RSS](/packages/rahulmac-curspell/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (9)Dependencies (1)Versions (10)Used By (0)

[![Curspell Logo](https://raw.githubusercontent.com/Rahul-Mac/curspell/refs/heads/main/assets/curspell.png)](https://packagist.org/packages/rahulmac/curspell)

[![Packagist Version](https://camo.githubusercontent.com/0d3fc6c3d22659fbcc6430f621cef17626c2a87a9aeb124800935d9421cea1a7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f726168756c6d61632f6375727370656c6c)](https://packagist.org/packages/rahulmac/curspell)[![GitHub License](https://camo.githubusercontent.com/4be9e9918806a534fca5e1f3b529d020cf20733e6679a52f6890cac2c4d8acf5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f526168756c2d4d61632f6375727370656c6c)](https://github.com/Rahul-Mac/curspell/blob/main/LICENSE)

Curspell
========

[](#curspell)

Curspell (short for currency speller) is a PHP package to spell out currency amounts.

Installation
============

[](#installation)

```
composer require rahulmac/curspell
```

Prerequisites
=============

[](#prerequisites)

- PHP v8.0+
- The `intl` extension
- The `bcmath` extension

Usage
=====

[](#usage)

Basic Usage
-----------

[](#basic-usage)

Simply create an object and invoke `spell()` with the amount.

> By default, it uses `USD` as the currency code and `en_US` as the locale.

```
use Rahulmac\Curspell\Curspell;

echo (new Curspell())->spell(123.45);    // one hundred twenty-three dollars and forty-five cents
```

Currency Code and Locale
------------------------

[](#currency-code-and-locale)

You can change the currency code and locale of your choice.

Note

For now, the package can only spellout amounts in the English language.

```
use Rahulmac\Curspell\Curspell;

echo (new Curspell())->setCode('INR')->setLocale('en_IN')->spell(123.45);    // one hundred twenty-three rupees and forty-five paise
```

Supported Currencies
====================

[](#supported-currencies)

Here is the list of the [currencies](/docs/CURRENCY_LOCALE.md) this package supports.

License
=======

[](#license)

Curspell is open-sourced software licensed under the [MIT license](LICENSE).

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance61

Regular maintenance activity

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Recently: every ~42 days

Total

9

Last Release

246d ago

Major Versions

v0.8.0 → v1.0.02025-09-14

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/22441472?v=4)[Rahul Makwana](/maintainers/rahulmac)[@rahulmac](https://github.com/rahulmac)

---

Top Contributors

[![Rahul-Mac](https://avatars.githubusercontent.com/u/61614844?v=4)](https://github.com/Rahul-Mac "Rahul-Mac (61 commits)")

---

Tags

currencyphpspeller

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rahulmac-curspell/health.svg)

```
[![Health](https://phpackages.com/badges/rahulmac-curspell/health.svg)](https://phpackages.com/packages/rahulmac-curspell)
```

###  Alternatives

[kzykhys/parallel

Simple multitasking library

93334.1k4](/packages/kzykhys-parallel)[tiny-pixel/acorn-block-templates

Block templates for Sage 10

191.2k](/packages/tiny-pixel-acorn-block-templates)

PHPackages © 2026

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