2017 © Pedro Peláez
 

library numbers_words

Allows to use Numbers_Words library in symfony with : french, english ans spanish

image

azul/numbers_words

Allows to use Numbers_Words library in symfony with : french, english ans spanish

  • Saturday, May 9, 2015
  • by massil31
  • Repository
  • 2 Watchers
  • 5 Stars
  • 1,248 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 46 Forks
  • 1 Open issues
  • 2 Versions
  • 6 % Grown

The README.md

Getting Started With Numbers_Words Library

This library allows you converts numbers to words with no intl php extension, (*1)

Installation

Download Numbers_Words Library using composer

Add Numbers_Words by running the command:, (*2)

``` bash $ php composer.phar require azul/numbers_words "dev-master", (*3)


Or by adding this line to your composer.json file And run composer.phar update ``` json // "azul/numbers_words":"dev-master" //

Composer will install the library to your project's vendor/azul directory., (*4)

Using Numbers_Words Library

Convert integer

``` php <?php // In Controller $numbers_words = new Word();, (*5)

$word = $numbers_words->toWords(12378 /Number/, 'en'/locale/), (*6)

// Output : twelve thousand three hundred seventy-eight // Available locales : fr, en, es, (*7)


## Convert money ammount ``` php <?php // In Controller $numbers_words = new Word(); $word = $numbers_words->toCurrency('123,56'/**Ammount**/, 'en'/**Locale**/, 'EUR'/**Currency**/, ','/**Decimal Point**/); // Output : cent vingt-trois euros cinquante-six centimes // Available locales : fr, en, es

The Versions

09/05 2015

dev-master

9999999-dev https://github.com/massil31/Numbers_Words

Allows to use Numbers_Words library in symfony with : french, english ans spanish

  Sources   Download

PHP-3.01

The Requires

  • php >=5.3.2

 

by Massil Korichi

numbers

09/05 2015

dev-dev-0.1

dev-dev-0.1 https://github.com/massil31/Numbers_Words

Allows to use Numbers_Words library in symfony with : french, english ans spanish

  Sources   Download

PHP-3.01

The Requires

  • php >=5.3.2

 

by Massil Korichi

numbers