dev-master
9999999-devNumber to word, roman, ordinal converter
MIT
The Requires
- php >=5.4.0
- illuminate/support 4.2.*
by Riasad Tasha
laravel numberconverter roman numerical ordinal numbers
Wallogit.com
2017 © Pedro Peláez
Number to word, roman, ordinal converter
Begin by installing this package through Composer. Just run following command to terminal-, (*1)
composer require riasad/number-converter dev-master
Next step is to add the service provider.
Open config/app.php, and add a new item to the providers array., (*2)
'providers' => array(
...
'Riasad\NumberConverter\NumberConverterServiceProvider',
)
Now add the alias., (*3)
'aliases' => array(
...
'NumConvert' => 'Riasad\NumberConverter\Facades\NumberConverter',
)
Convert to word (Supported number range -2147483647 to 2147483647), (*4)
echo NumConvert::convert(122,'W');
Convert to roman (Supported number range 1 to 3999), (*5)
echo NumConvert::convert(122,'R');
Ordinal suffix (Supported number range 1 to 2147483647), (*6)
echo NumConvert::convert(122,'O');
Number to word, roman, ordinal converter
MIT
laravel numberconverter roman numerical ordinal numbers