Download the PHP package tnkemdilim/money-to-words-converter without Composer

On this page you can find all versions of the php package tnkemdilim/money-to-words-converter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package money-to-words-converter

Money To Words Converter

Packagist Build Status PHP from Packagist Packagist

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

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

  1. Fork it!
  2. Create your feature branch: git checkout -b feature-name
  3. Commit your changes: git commit -am 'Some commit message'
  4. Push to the branch: git push origin feature-name
  5. Submit a pull request 😉😉

License

MIT © Tochukwu Nkemdilim


All versions of money-to-words-converter with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2 || ^8
stichoza/google-translate-php Version ~4.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package tnkemdilim/money-to-words-converter contains the following files

Loading the files please wait ....