Download the PHP package christs_dev/money-to-words-converter without Composer
On this page you can find all versions of the php package christs_dev/money-to-words-converter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download christs_dev/money-to-words-converter
More information about christs_dev/money-to-words-converter
Files in christs_dev/money-to-words-converter
Package money-to-words-converter
Short Description A php library that converts any money value in digit in any language or numeric system to its words in any language
License MIT
Informations about the package money-to-words-converter
Money To Words Converter
A php library that converts any money value in digit in any language or numeric system to its words in any language
Caveat
Currently, this library relies on stichoza/google-translate-php which could result in periodic 400 Bad Request
as highlighted here and here.
If you care about reliability, kindly checkout a managed API service I run: Tuforty.
Installation
-
Install this package via Composer.
- Or edit your project's
composer.json
to requiretnkemdilim/money-to-words-converter
and then runcomposer update
.
Example
For working example, checkout the Example folder.
Usage
Note: You should have composer's autoloader included
require 'vendor/autoload.php'
Always include Converter namespace to your php file
Basic usage
Other Languages
To convert money value to other languages, you'll need to import the Languages
namespace
Convertion From Other Numeric System
Conversion from other numeric systems are supported in-built, and by default needs no extra configuration to convert into words.
Read more about Numeric systems.
Change Currency
To change the currency of the money to convert
Change Language Translation
Language for translation can be easily changed as follows. All available languages can be accessed via the TNkemdilim\MoneyToWords\Languages
class.
See all available in Languages.
Supported Languages
For more conversion types
Language Name | Code | Language Name | Code | Language Name | Code | Language Name | Code |
Afrikaans | af | Irish | ga | Albanian | sq | Italian | it |
Arabic | ar | Japanese | ja | Azerbaijani | az | Kannada | kn |
Basque | eu | Korean | ko | Bengali | bn | Latin | la |
Belarusian | be | Latvian | lv | Bulgarian | bg | Lithuanian | lt |
Catalan | ca | Macedonian | mk | Chinese Simplified | zh-CN | Malay | ms |
Chinese Traditional | zh-TW | Maltese | mt | Croatian | hr | Norwegian | no |
Czech | cs | Persian | fa | Danish | da | Polish | pl |
Dutch | nl | Portuguese | pt | English | en | Romanian | ro |
Esperanto | eo | Russian | ru | Estonian | et | Serbian | sr |
Filipino | tl | Slovak | sk | Finnish | fi | Slovenian | sl |
French | fr | Spanish | es | Galician | gl | Swahili | sw |
Georgian | ka | Swedish | sv | German | de | Tamil | ta |
Greek | el | Telugu | te | Gujarati | gu | Thai | th |
Haitian Creole | ht | Turkish | tr | Hebrew | iw | Ukrainian | uk |
Hindi | hi | Urdu | ur | Hungarian | hu | Vietnamese | vi |
Icelandic | is | Welsh | cy | Indonesian | id | Yiddish | yi |
Contribution
- Fork it!
- Create your feature branch:
git checkout -b feature-name
- Commit your changes:
git commit -am 'Some commit message'
- Push to the branch:
git push origin feature-name
- Submit a pull request 😉😉
License
MIT © Tochukwu Nkemdilim