aizhar777 / numbers-to-words
Laravel package for the translation of numbers to words
v1.0
2016-10-31 19:43 UTC
This package is not auto-updated.
Last update: 2024-11-18 13:27:42 UTC
README
Laravel package for the translation of numbers to words
Install
Install package with composer
composer require aizhar777/numbers-to-words
Publish config
php artisan vendor:publish
Add Provider
Aizhar777\NumToWord\NumToWordServiceProvider::class,
Add Facade
'NumbersToWords' => Aizhar777\NumToWord\Facades\NumberToWordsFacade::class,
Basic usage
Controller
echo \NumbersToWords::getStr($number);
Blade
<p> @numToWords($number)</p>