| Package Data | |
|---|---|
| Maintainer Username: | bluora |
| Maintainer Contact: | rocco@bluora.com.au (Rocco Howard) |
| Package Create Date: | 2016-11-22 |
| Package Last Update: | 2025-03-05 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-10-26 15:03:02 |
| Package Statistics | |
|---|---|
| Total Downloads: | 153,808 |
| Monthly Downloads: | 3,043 |
| Daily Downloads: | 43 |
| Total Stars: | 20 |
| Total Watchers: | 3 |
| Total Forks: | 7 |
| Total Open Issues: | 0 |
This package provides a Laravel wrapper to the PHP-Number-Converter package that provides the ability to convert a numerical number to a word, roman numeral, or an ordinal suffix.
This package has been developed by H&H|Digital, an Australian botique developer. Visit us at hnh.digital.
Via composer:
$ composer require hnhdigital-os/laravel-number-converter
Enable an alias by editing config/app.php:
'aliases' => [
...
'NumConvert' => 'HnhDigital\LaravelNumberConverter\Facade',
...
]
Supported number range -2147483647 to 2147483647.
echo NumConvert::word(1);
echo number_to_word(1);
one
Supported number range 1 to 3999.
echo NumConvert::roman(1);
echo number_to_roman(1);
I
Supported number range 1 to 2147483647.
echo NumConvert::wordOrdinal(1);
echo number_to_word_ordinal(1);
first
Supported number range 1 to 2147483647.
echo NumConvert::numberOrdinal(1);
echo number_with_ordinal_suffix(1);
1st
Please see CONTRIBUTING for details.
The MIT License (MIT). Please see License File for more information.