PHPackages                             cibs/currency-to-words - 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. cibs/currency-to-words

ActiveProject

cibs/currency-to-words
======================

A PHP number to words Currency converter

1.0.1(10mo ago)117↓100%MITPHP

Since Feb 1Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/kwesifokuo/currency-to-words)[ Packagist](https://packagist.org/packages/cibs/currency-to-words)[ RSS](/packages/cibs-currency-to-words/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (3)Used By (0)

CurrencyToWords
===============

[](#currencytowords)

Usage
=====

[](#usage)

Install
-------

[](#install)

`composer require cibs/currency-to-words`

Create an Instance
------------------

[](#create-an-instance)

Then in your Controller or View, you can use it with an instance. \\

`$currencyToWords = new \CurrencyToWords\CurrencyToWords();`

or Use
------

[](#or-use)

`use CurrencyToWords\CurrencyToWords;`

`$ctw = new CurrencyToWords();`
`$amtInWords = $ctw->format(101000.56, 'en', 'Ghana Cedis', 'Pesewas');`

### Parameters

[](#parameters)

String $amount = "10000.56" (Required)
String $lang = "en" (Required)
String $word\_currency = "United States Dollars" (Required)
String $word\_unit = "Cents" (Required)
String $case = "default" (Optional)

\*\* Currency should be changed to your preferred currency words and word units \*\*

For Default case using ucwords()
--------------------------------

[](#for-default-case-using-ucwords)

`$amtInWords = $currencyToWords->format(10000.56, 'en', 'Ghana Cedis', 'Pesewas');`

For Uppercase using strtoupper()
--------------------------------

[](#for-uppercase-using-strtoupper)

`$amtInWords = $currencyToWords->format(10000.56, 'en', 'Ghana Cedis', 'Pesewas', 'upper');`

For Lowercase using strtolower()
--------------------------------

[](#for-lowercase-using-strtolower)

`$amtInWords = $currencyToWords->format(10000.56, 'en', 'Ghana Cedis', 'Pesewas', 'lower');`

For Different Languages using PHP NumberFormatter::getLocale
------------------------------------------------------------

[](#for-different-languages-using-php-numberformattergetlocale)

### Example

[](#example)

'en' = English, 'fr' = French, 'es' = Spanish, etc.
`$amtInWords = $currencyToWords->format(10000.56, 'fr', 'Euros', 'Cents', 'lower');`

Here is a complete list of PHP locales:

###  Health Score

29

—

LowBetter than 62% of packages

Maintenance53

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

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

Total

2

Last Release

328d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4f6101c040b1e501baf728736045604e97684dd8d4b7d9eeb0259333b83a61d2?d=identicon)[kwesifokuo](/maintainers/kwesifokuo)

---

Top Contributors

[![kwesifokuo](https://avatars.githubusercontent.com/u/2556199?v=4)](https://github.com/kwesifokuo "kwesifokuo (13 commits)")

### Embed Badge

![Health badge](/badges/cibs-currency-to-words/health.svg)

```
[![Health](https://phpackages.com/badges/cibs-currency-to-words/health.svg)](https://phpackages.com/packages/cibs-currency-to-words)
```

PHPackages © 2026

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