PHPackages                             sakibrahamanchy/decimal-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. sakibrahamanchy/decimal-to-words

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

sakibrahamanchy/decimal-to-words
================================

Convert decimal numbers to words ( Currency, Regular Word, Bank Cheques etc.)

1.0.0(6y ago)23.6k↓36%MITPHPPHP &gt;=7.0.0CI failing

Since Oct 13Pushed 6y ago1 watchersCompare

[ Source](https://github.com/sakibrahmanchy/decimal-to-words)[ Packagist](https://packagist.org/packages/sakibrahamanchy/decimal-to-words)[ RSS](/packages/sakibrahamanchy-decimal-to-words/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

[![CircleCI](https://camo.githubusercontent.com/dc8046ce1b6465962231d4a1a51a524185abe7e5c917929b813f886649e16bcc/68747470733a2f2f696d672e736869656c64732e696f2f636972636c6563692f6275696c642f6769746875622f73616b69627261686d616e6368792f646563696d616c2d746f2d776f726473)](https://camo.githubusercontent.com/dc8046ce1b6465962231d4a1a51a524185abe7e5c917929b813f886649e16bcc/68747470733a2f2f696d672e736869656c64732e696f2f636972636c6563692f6275696c642f6769746875622f73616b69627261686d616e6368792f646563696d616c2d746f2d776f726473)[![GitHub](https://camo.githubusercontent.com/1f8256e8bc51e48b2d98b9a2c62619610e05634a10f407af0f07ff1afc1826f4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f73616b69627261686d616e6368792f646563696d616c2d746f2d776f726473)](https://camo.githubusercontent.com/1f8256e8bc51e48b2d98b9a2c62619610e05634a10f407af0f07ff1afc1826f4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f73616b69627261686d616e6368792f646563696d616c2d746f2d776f726473)

decimal-to-words
================

[](#decimal-to-words)

A simple decimal to word converter (Decimal numbers, currency etc.)

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

[](#installation)

```
composer require sakibrahamanchy/decimal-to-words

```

Configurations
--------------

[](#configurations)

### Methods

[](#methods)

```
convert($number, $currency_whole = '', $currency_decimal = '', $case = null)

```

**$number** - Input number, can be either decimal or ineger, REQUIRED
**$currency\_whole** - Currency Denominator for whole number, Optional, e.g: dollar, taka, rupee etc
**$currency\_decimal** - Currency Denominator for decimal number, Optional, e.g: cents, paisa etc
**$case** - Case of the output sring, Optional, Can be either 'upper', 'lower' or null

Usage
-----

[](#usage)

```
use SakibRahaman\DecimalToWords\DecimalToWords;

$converted_number = DecimalToWords::convert(0);
var_dump($converted_number);
// Zero

// Basic
$converted_number = DecimalToWords::convert(123.529);
var_dump($converted_number);
// One Hundred Twenty Three Point Fifty Three

// With currency ( 'currency_whole' & 'currency_decimal')
$converted_number = DecimalToWords::convert(42123.529,'dollar',
    'cents');
var_dump($converted_number);
// Forty Two Thousand One Hundred Twenty Three dollar and Fifty Three cents

// With case ('lower' & 'upper')
$converted_number = DecimalToWords::convert(42123.529,'dollar',
    'cents','upper');
var_dump($converted_number);
// FORTY TWO THOUSAND ONE HUNDRED TWENTY THREE DOLLAR AND FIFTY THREE CENTS

```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

Unknown

Total

1

Last Release

2410d ago

### Community

Maintainers

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

---

Top Contributors

[![sakibrahmanchy](https://avatars.githubusercontent.com/u/25351337?v=4)](https://github.com/sakibrahmanchy "sakibrahmanchy (14 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sakibrahamanchy-decimal-to-words/health.svg)

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

###  Alternatives

[kreait/gcp-metadata

Get the metadata from a Google Cloud Platform environment.

664.8M1](/packages/kreait-gcp-metadata)[zjkal/time-helper

一个简单快捷的PHP日期时间助手类库。 a smart PHP datetime helper library.

21128.6k1](/packages/zjkal-time-helper)[mediarox/module-checkout-placeholder

Show placeholders instead of labels at common checkout field's (incl. required entry mark).

101.3k](/packages/mediarox-module-checkout-placeholder)

PHPackages © 2026

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