afoakwahsoftware / money
A money wrapper class
v1.0.1
2019-01-12 17:48 UTC
Requires
- php: >=5.3.0
Requires (Dev)
- phpunit/phpunit: ~4.0
This package is auto-updated.
Last update: 2025-03-13 07:40:39 UTC
README
This is a wrapper class for money and currency that enhances internationalization using Locales.
Installation:
Using Composer:
composer require afoakwahsoftware/money
Usage:
Create a new money instance:
use \Money\Money;
use \Money\Currency;
$money = new Money(50.00, new Currency('en-US'));
echo $money
?>
The above code will print
$50.00