PHP code example of headsnet / money-bundle
1. Go to this page and download the library: Download headsnet/money-bundle 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/ */
headsnet / money-bundle example snippets
Headsnet\MoneyBundle\HeadsnetMoneyBundle::class => ['all' => true]
$amount = Money::EUR(200);
$serializer->serialize($amount, 'json'); // ==> '{"amount":"200","currency":"EUR"}'