Skip to content

mrprompt/money

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Money

Build Status

Library to made work with currency and money easy.

Install

composer install mrprompt/money

Use

use MrPrompt\Money\Currency;

$money = new Currency('BRL');
$money->code(); // return the code (the same passed at constructor)
$money->number(); // return the code as number, like 960.
$money->name(); // return the currency name, like Real
$money->countries(); // return the countries that use the currency
$money->decimals(); // return the decimals used by the currency
$money->symbol(); // return the symbol of the currency
$money->format(1.00); // format the currency

License

GPLv3

About

Library to made work with currency and money easy.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages