| Recommend this page to a friend! |
| Info | Documentation | Reputation | Support forum | Blog | Links |
| Ratings | Unique User Downloads | Download Rankings | ||||
| Not yet rated by the users | Total: 77 | All time: 10,162 This week: 673 | ||||
| Version | License | PHP version | Categories | |||
| php-word-to-number 1.0 | The PHP License | 7 | PHP 5, Text processing, Finances |
| Description | Author | |
This package can convert a string with amount in words to a number. |
This PHP package allows you convert numbers written in words to integers
You can install the package via composer:
composer require djunehor/word-to-number
use Djunehor\Number\WordToNumber;
$wordToNumber = new WordToNumber();
$wordTransformer = $wordToNumber->getWordTransformer();
// you can specify locale via: $wordToNumber->getWordTransformer('en');
$number = $wordTransformer->toNumber($word);
$number = word_to_number($word);
//default locale is en
$number = word_to_number($word, 'yo');
// specify Yoruba locale
|Language|Code|Test| |:--------- | :-----------------: | :------: | |English|en|Yes|
| File | Role | Description | ||
|---|---|---|---|---|
| Data | Auxiliary data | |||
| Data | Auxiliary data | |||
| Data | Auxiliary data | |||
| Data | Auxiliary data | |||
| Doc. | Documentation | |||
| / | src |
| File | Role | Description | ||
|---|---|---|---|---|
| |
Class | Class source | ||
| / | src | / | Locales |
| File | Role | Description |
|---|---|---|
| |
Class | Class source |
| |
Class | Class source |
| The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
| Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
| 100% |
|
|
| Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.