Via Composer
$ composer require ahmadarif/terbilang
Add the service provider in config/app.php
:
AhmadArif\Terbilang\TerbilangServiceProvider::class,
And then, add the facade of this package to the $aliases array:
'Terbilang' => AhmadArif\Terbilang\Facade\Terbilang::class,
Route::get('/', function () {
return Terbilang::convert(34124);
});
or
Route::get('/', function () {
return Terbilang::convert('34124');
});
If you discover any security related issues, please email ahmad.arif019@gmail.com instead of using the issue tracker.
Thanks to Mulia Nasution, as the basic project for the creation of this library.
The MIT License (MIT). Please see License File for more information.