Download the PHP package lla/numbers_words without Composer

On this page you can find all versions of the php package lla/numbers_words. 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 numbers_words

Introduction

This repository is a fork of PEAR::Numbers_Words as composer package with PSR-0 compliance.

Credits to all previous authors.

Getting started

First you need to install lla/numbers_words PEAR package. You can do it (as root) with:

In your php script you need to header file:

Then you can call function with two arguments: integer number (can be a string with digits) and optional locale name (default is en_US):

For this would display:

There are avaibale the following modules (called by locale name, in alphabetical order):

az - Azerbaijani language. Author: Shahriyar Imanov

bg - Bulgarian language (in WIN-1251 charset). Author: Kouber Saparev

cs - Czech language. Author: Petr 'PePa' Pavel

de - German language. Author: Piotr Klaban

dk - Danish language. Author: Jesper Veggerby

en_100 - Donald Knuth number naming system, in English language. Author: Piotr Klaban

en_GB - British English notation of numbers, where one billion is 1000000 times one million. 1000 times million is just 'thousand million' here. I do not use a word billiard here, because English people do not use it often, and even could not know it. Author: Piotr Klaban

en_US - American English notation of numbers, where one billion is 1000 times one million Author: Piotr Klaban

es - Spanish (Castellano) language. Author: Xavier Noguer

es_AR - Argentinian Spanish language. Author: Martin Marrese

et - Estonian language. Author: Erkki Saarniit

fr - French language. Author: Kouber Saparev

fr_BE - French (Belgium) language. Author: Kouber Saparev, Philippe Bajoit

he - Hebrew language. Author: Hadar Porat

hu_HU - Hungarian language. Author: Nils Homp

id - Indonesia language. Authors: Ernas M. Jamil, Arif Rifai Dwiyanto

it_IT - Italian language. Authors: Filippo Beltramini, Davide Caironi

lt - Lithuanian language. Author: Laurynas Butkus

nl - Dutch language. Author: WHAM van Dinter

pl - Polish language (in an internet standard charset ISO-8859-2) Author: Piotr Klaban

pt_BR - Brazilian Portuguese language. Authors: Marcelo Subtil Marcal, Mario H.C.T., Igor Feghali

ro_RO - Romanian language. Author: Bogdan Stancescu

ru - Russian language. Author: Andrey Demenev

sv - Swedish language. Author: Robin Ericsson

tr_TR - Turkish language. Author: Shahriyar Imanov

** What if numbers have fraction part?

You can split the number by the coma or dot. The example function was provided by Ernas M. Jamil (see below). I do not know if the splitting and concatenating numbers should be supported by Numbers_Words ... Does each language spell numbers with a 'coma'/'koma'? What do you think?

** How to convert decimal part and not fraction part of the currency value?

Rob King send me a patch that would allow to leave fraction part in digits. I.e. you can convert 31.01 into 'thirty-one pounds 01 pence':

** How to write new Language Files:

Just copy existing en_US or en_GB etc. file into src/LLA/Numbers/Words/Locale/{your_country/locale code}.php and translate digits, numbers, tousands to your language. Then please send it to the author to the address [email protected].

** Credits

All changes from other people are desrcribed with details in ChangeLog. There are also names of the people who send me patches etc. Authors of the language files are mentioned in the language files directly as the author.


All versions of numbers_words with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.20
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 lla/numbers_words contains the following files

Loading the files please wait ....