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

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

rohit/number-to-word
====================

Number to Word For Laravel Framework

1.0.0(8y ago)118MITPHPPHP &gt;=7

Since Jun 27Pushed 8y ago1 watchersCompare

[ Source](https://github.com/rohitsubedi/number-to-word)[ Packagist](https://packagist.org/packages/rohit/number-to-word)[ Docs](https://github.com/rohitsubedi/number-to-word)[ RSS](/packages/rohit-number-to-word/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

Number to Word
==============

[](#number-to-word)

Very easy and light package for converting number to word on different languages.

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

[](#installation)

### Composer

[](#composer)

Add Number to Word to your composer.json file

```
"rohit/number-to-word": "^1.0"

```

Run `composer install` to get the latest version of package

Or you can directly run the `composer require` command

```
composer require rohit/number-to-word

```

### Configuration

[](#configuration)

After the package install is completed you need to configure `config/app.php` and add `Providers` and `Aliases`

```
    'providers` => [
        .......
        .......
        Rohit\NumberToWord\NumberToWordServiceProvider::class
    ]
```

```
    'aliases' => [
        ......
        ......
        'NumberToWord' => Rohit\NumberToWord\Facades\NumberToWord::class
    ]
```

### Vendor Publish

[](#vendor-publish)

After the above steps, you need to publish vendor for this packge. It will create `line-pay.php` file under `config` folder. This folder contains the configuration for your locales.

```
php artisan vendor:publish --provider="Rohit\NumberToWord\NumberToWordServiceProvider"

```

The file `number-to-word.php` will contain the following structure. The following structure is for english. You can add configs for other languages as well.

```
