PHP code example of rogervila / moneyphp-operations
1. Go to this page and download the library: Download rogervila/moneyphp-operations 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/ */
rogervila / moneyphp-operations example snippets
use Money\Money;
use MoneyOperation\Operation;
// From a Money object
$operation = Operation::of(Money::EUR(1000));
// From values (amount and currency)
$operation = Operation::ofValues(1000, 'EUR');