Package Data | |
---|---|
Maintainer Username: | saintkabyo |
Maintainer Contact: | saintkabyo@gmail.com (Riasad Tasha) |
Package Create Date: | 2016-02-11 |
Package Last Update: | 2016-02-11 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-23 03:26:11 |
Package Statistics | |
---|---|
Total Downloads: | 14 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 1 |
Total Forks: | 4 |
Total Open Issues: | 0 |
Begin by installing this package through Composer. Just run following command to terminal-
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.
'providers' => array(
...
'Riasad\NumberConverter\NumberConverterServiceProvider',
)
Now add the alias.
'aliases' => array(
...
'NumConvert' => 'Riasad\NumberConverter\Facades\NumberConverter',
)
##Instructions Convert to word (Supported number range -2147483647 to 2147483647)
echo NumConvert::convert(122,'W');
Convert to roman (Supported number range 1 to 3999)
echo NumConvert::convert(122,'R');
Ordinal suffix (Supported number range 1 to 2147483647)
echo NumConvert::convert(122,'O');