2017 © Pedro Peláez
 

library number-converter

Number to word, roman, ordinal converter

image

riasad/number-converter

Number to word, roman, ordinal converter

  • Thursday, February 11, 2016
  • by saintkabyo
  • Repository
  • 1 Watchers
  • 0 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

This package is compatible with Laravel 4.2

Installation

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',
)

Instructions

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');

The Versions

11/02 2016

dev-master

9999999-dev

Number to word, roman, ordinal converter

  Sources   Download

MIT

The Requires

 

by Riasad Tasha

laravel numberconverter roman numerical ordinal numbers