Skip to content

RuslanKarelin/numbers-translator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

numbers-translator

Translating numbers into English

Composer

$ composer require karelin/numbers-translator

For example,

<?php

require_once 'vendor/autoload.php';

use NumbersTranslator\Translator;

echo Translator::make(1560);

// result:
// one thousand five hundred and sixty

Or

<?php

require_once 'vendor/autoload.php';

use NumbersTranslator\Translator;

echo Translator::make(1560, 'usa');

// result:
// one thousand five hundred sixty

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages