A money and currency library for PHP.
Working with financial data is a serious matter, and small rounding mistakes in an application may lead to disastrous consequences in real life. That's why floating-point arithmetic is not suited for monetary calculations.
This component is based on the Math component and handles exact calculations on monies of any size.
This library requires PHP 5.6, PHP 7 or HHVM.
We recommend installing it with Composer.
Just define the following requirement in your composer.json
file:
{
"require": {
"brick/money": "dev-master"
}
}