Download the PHP package rohit/number-to-word without Composer
On this page you can find all versions of the php package rohit/number-to-word. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rohit/number-to-word
More information about rohit/number-to-word
Files in rohit/number-to-word
Package number-to-word
Short Description Number to Word For Laravel Framework
License MIT
Homepage https://github.com/rohitsubedi/number-to-word
Informations about the package number-to-word
Number to Word
Very easy and light package for converting number to word on different languages.
Installation
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
After the package install is completed you need to configure config/app.php
and add Providers
and Aliases
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.
Functions
-
Convert To Word
You can convert any number to word depending on your config
The result of the above function will be as follows: