PHP code example of afoakwahsoftware / money

1. Go to this page and download the library: Download afoakwahsoftware/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/ */

    

afoakwahsoftware / money example snippets



use \Money\Money;

use \Money\Currency;

$money = new Money(50.00, new Currency('en-US'));

echo $money