PHPackages                             nihar/num2word-bd - 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. nihar/num2word-bd

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

nihar/num2word-bd
=================

This package convert number to word according to Bangladeshi numeric system

v1.0.0(2y ago)03MITPHPPHP ^8.0

Since Dec 28Pushed 2y ago1 watchersCompare

[ Source](https://github.com/NiharRan/num2word-bd)[ Packagist](https://packagist.org/packages/nihar/num2word-bd)[ RSS](/packages/nihar-num2word-bd/feed)WikiDiscussions main Synced yesterday

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

About Num2word-BD
=================

[](#about-num2word-bd)

**[NUM2WORD-BD](https://github.com/NiharRan/num2word-bd)** is a library for number conversion from number to word according to Bangladeshi numeric system

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

[](#requirements)

- PHP 8.0 and above.

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

[](#installation)

For running this example, you need to install `num2word-bd` library before. It can be done by two different methods:

### 1. Using Composer

[](#1-using-composer)

You can install the library via [Composer](https://getcomposer.org/).

```
composer require nihar/num2word-bd

```

Please see configuration section below for configuring.

Usage
-----

[](#usage)

To convert a number to words, follow these steps:

```
use Nihar\Num2wordBd\Formatter;

// Instantiate the Formatter class
$formatter = new Formatter();

// Call the format method and pass the number you want to convert
$result = $formatter
    ->currency('TK')
    ->fractionCurrency('Paysa')
    ->joinSign('&')
    ->format(1234.56);

echo $result; // Outputs: "One Thousand Two Hundred Thirty Four TK & Fifty Six Paysa"
```

Available Methods
-----------------

[](#available-methods)

- format($number): Converts the provided number into its word representation.
- currency($sign): Set the currency sign for the whole number part.
- fractionCurrency($sign): Set the currency sign for the fractional part.
- joinSign($sign): Set the sign to join the whole and fractional parts.

Contributing
------------

[](#contributing)

Contributions are welcome! Here's how you can contribute to this project:

1. Fork the repository
2. Create your feature branch (git checkout -b feature/YourFeature)
3. Commit your changes (git commit -m 'Add some feature')
4. Push to the branch (git push origin feature/YourFeature)
5. Open a pull request

License
-------

[](#license)

The MIT License (MIT): Please see the [License File](LICENSE)

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

918d ago

### Community

Maintainers

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

---

Top Contributors

[![NiharRan](https://avatars.githubusercontent.com/u/25366216?v=4)](https://github.com/NiharRan "NiharRan (11 commits)")

---

Tags

phpconverternumberBanglabd

###  Code Quality

TestsPest

Static AnalysisRector

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/nihar-num2word-bd/health.svg)

```
[![Health](https://phpackages.com/badges/nihar-num2word-bd/health.svg)](https://phpackages.com/packages/nihar-num2word-bd)
```

###  Alternatives

[thunderer/numbase

Convert any number between arbitrary bases

242.3k](/packages/thunderer-numbase)[delight-im/base-convert

Conversion of arbitrarily large numbers between any two bases or alphabets

161.5k](/packages/delight-im-base-convert)

PHPackages © 2026

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