1. Go to this page and download the library: Download nilz/money library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
nilz / money example snippets
use Nilz\Money\Money;
use Nilz\Money\Currency\ISO4217Currency;
$money = new Money(420, new ISO4217Currency('EUR'));
$money = Money::fromDefaultUnitAmount('4.20', 'EUR');
use Nilz\Money\Currency\Currency;
//alpha3 code, factor for smallest unit representation, decimal digits to round two
$money = new Money(420, new Currency('EUR', 100, 2));
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.