Download the PHP package djunehor/word-to-number without Composer
On this page you can find all versions of the php package djunehor/word-to-number. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download djunehor/word-to-number
More information about djunehor/word-to-number
Files in djunehor/word-to-number
Download djunehor/word-to-number
More information about djunehor/word-to-number
Files in djunehor/word-to-number
Please rate this library. Is it a good library?
Informations about the package word-to-number
Word To Number
This PHP package allows you to convert numbers written in words to integers.
- Laravel Grammar
- Installation
- Usage
- Via Helper
- Available Locales
- Adding New Locale
Installation
You can install the package via composer:
Usage
Via Helper
Available Locales
| Language | Code | Test |
|---|---|---|
| English | en | Yes |
| French | fr | Yes |
Adding New Locale
- In
Localesdirectory, createYourLocaleTransformerclass that implementsWordTransformer - Ensure there's a
toNumber()method that accepts string and returns int - Add
YourLocaleTransformer::classto$wordTransformersarray inWordToNumber - Ensure the class pass tests
- Update the Readme Available Locales section with your newly added locale
- Create a Pull Request
All versions of word-to-number with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.1
The package djunehor/word-to-number contains the following files
Loading the files please wait ...


