PHP code example of bluora / laravel-number-converter

1. Go to this page and download the library: Download bluora/laravel-number-converter library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

bluora / laravel-number-converter example snippets


'aliases' => [
    ...
    'NumConvert' => 'HnhDigital\LaravelNumberConverter\Facade',
    ...
]

echo NumConvert::word(1);
echo number_to_word(1);

echo NumConvert::roman(1);
echo number_to_roman(1);

echo NumConvert::wordOrdinal(1);
echo number_to_word_ordinal(1);

echo NumConvert::numberOrdinal(1);
echo number_with_ordinal_suffix(1);