riasad/number-converter

Number to word, roman, ordinal converter
14
Install
composer require riasad/number-converter
PHP:>=5.4.0
License:MIT
Last Updated:Feb 11, 2016
Links: GitHub  ·  Packagist
Maintainer: saintkabyo

This package is compatible with Laravel 4.2

Installation

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

Related Packages

reliese/laravel

Reliese Components for Laravel Framework code generation.

3,954,390 1,705
php-tmdb/laravel

Laravel Package for TMDB ( The Movie Database ) API. Provides easy access to the...

53,312 160
laravel-ja/laravel

The Laravel Framework.

5,667 17
kavenegar/laravel

laravel 4 and 5 kavenegar integration

366,462 86
laravel/laravel

The skeleton application for the Laravel framework.

64,738,171 84,935