PHPackages                             s1k3/bangla-number-to-word - 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. s1k3/bangla-number-to-word

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

s1k3/bangla-number-to-word
==========================

Laravel Package to convert number to bangla currency works with both english and bangla

1.0.5(2mo ago)42481MITPHPPHP ^8.1

Since Aug 18Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/s1k3/laravel_currency_to_word)[ Packagist](https://packagist.org/packages/s1k3/bangla-number-to-word)[ RSS](/packages/s1k3-bangla-number-to-word/feed)WikiDiscussions master Synced today

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

##### Laravel Library for converting number to word both for **Bangla &amp; English**

[](#laravel-library-for-converting-number-to-word-both-for-bangla--english)

***Requirements***This package uses the **php-intl extension** for English conversion.

---

### Installation

[](#installation)

- **composer require s1k3/bangla-number-to-word**
- **(You may skip this step when using Laravel &gt;= 5.5)**. Navigate to `config/app.php` and add to the providers array:

```
'providers' => [
    S1K3\Bangla\Number\To\Word\NumberToWordServiceProvider::class,
]
```

- Publish the configuration file:

```
php artisan vendor:publish --provider="S1K3\Bangla\Number\To\Word\NumberToWordServiceProvider"
```

---

### Helper Function

[](#helper-function)

#### `number_to_word(string $number, string $language = ''): string`

[](#number_to_wordstring-number-string-language---string)

ParameterTypeDescription`$number`stringThe numeric value to convert (integer or decimal)`$language`string`'en'` for English, `'bn'` for Bangla. Defaults to config value```
number_to_word('123', 'bn');
// একশত তেইশ টাকা

number_to_word('123', 'en');
// one hundred twenty-three taka

number_to_word('1556.62', 'bn');
// এক হাজার পাঁচশত ছাপ্পান্ন টাকা বাষট্টি পয়সা

number_to_word('15262', 'en');
// fifteen thousand two hundred sixty-two taka

// Omit language to use the default from config/number_to_word.php
number_to_word('155342262');
// পনের কোটি তিপ্পান্ন লক্ষ বিয়াল্লিশ হাজার দুইশত বাষট্টি টাকা
```

---

### Blade Directive

[](#blade-directive)

#### `@numberToWord($number, $language)`

[](#numbertowordnumber-language)

Use directly inside any Blade template. The language argument is optional and falls back to the config default.

```
{{-- With explicit language --}}
@numberToWord('123', 'en')
{{-- one hundred twenty-three taka --}}

@numberToWord('123', 'bn')
{{-- একশত তেইশ টাকা --}}

{{-- With a variable --}}
@numberToWord($invoice->total, 'en')

{{-- Using the config default language --}}
@numberToWord($invoice->total)
```

---

### Configuration (`config/number_to_word.php`)

[](#configuration-confignumber_to_wordphp)

```
return [
    'language' => 'bn',   // default language: 'en' or 'bn'
    'unit' => [
        'en' => 'taka',
        'bn' => 'টাকা',
    ],
    'units' => [
        'en' => [
            'crore'    => 'crore',
            'lac'      => 'lac',
            'thousand' => 'thousand',
            'hundred'  => 'hundred',
            'paisa'    => 'cent',
        ],
        'bn' => [
            'crore'    => 'কোটি',
            'lac'      => 'লক্ষ',
            'thousand' => 'হাজার',
            'hundred'  => 'শত',
            'paisa'    => 'পয়সা',
        ],
    ],
];
```

KeyDescription`language`Default language — `'en'` (English) or `'bn'` (Bangla)`unit`Currency name appended at the end of each result`units`Denomination labels used in the conversion

###  Health Score

47

—

FairBetter than 93% of packages

Maintenance83

Actively maintained with recent releases

Popularity17

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity68

Established project with proven stability

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

Recently: every ~515 days

Total

6

Last Release

84d ago

PHP version history (3 changes)1.0.0PHP ^7.0

1.0.2PHP ^7.0|^8.0

1.0.5PHP ^8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/19550001?v=4)[Robin Khan](/maintainers/s1k3)[@s1k3](https://github.com/s1k3)

---

Top Contributors

[![s1k3](https://avatars.githubusercontent.com/u/19550001?v=4)](https://github.com/s1k3 "s1k3 (7 commits)")

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/s1k3-bangla-number-to-word/health.svg)

```
[![Health](https://phpackages.com/badges/s1k3-bangla-number-to-word/health.svg)](https://phpackages.com/packages/s1k3-bangla-number-to-word)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M10](/packages/renatomarinho-laravel-page-speed)[illuminate/pagination

The Illuminate Pagination package.

12234.1M1.0k](/packages/illuminate-pagination)[illuminate/pipeline

The Illuminate Pipeline package.

9349.2M282](/packages/illuminate-pipeline)[illuminate/redis

The Illuminate Redis package.

8314.6M377](/packages/illuminate-redis)[illuminate/cookie

The Illuminate Cookie package.

244.6M137](/packages/illuminate-cookie)

PHPackages © 2026

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