PHP code example of plugowski / number_speller

1. Go to this page and download the library: Download plugowski/number_speller 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/ */

    

plugowski / number_speller example snippets



ller = NumberSpeller\NumberSpellerFactory::create('pl_PL');
echo $speller->verbally(125000); // will return sto dwadzieścia pięć tysięcy


$speller = NumberSpeller\NumberSpellerFactory::create('pl_PL');
echo $speller->variety(2, ['jabłko', 'jabłka', 'jabłek']); // will return: jabłka