rcngo/pt-br-number-in-words

Retorna um número por extenso

1.2.5 2020-08-21 13:14 UTC

This package is auto-updated.

Last update: 2025-07-06 01:30:37 UTC


README

Installation / Configuration

Navigate to your project folder, for example:

cd /etc/www/projeto

And then run:

composer require rcngo/pt-br-number-in-words:1.2.* --no-scripts

Or add it to the composer.json file, add it to your "require" :, example:

{
    "require": {
        "rcngo/pt-br-number-in-words": "1.2.*"
    }
}

Run the composer update --no-scripts command.

Use

NumberInWords::convertToWords(1);
//Return um real

NumberInWords::convertToWords(1, false);
//Return um

NumberInWords::convertToWords(1, false, true);
//Return uma