PHP code example of fomvasss / laravel-currency

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

    

fomvasss / laravel-currency example snippets


Currency::getActiveCurrencies();
Currency::issetCurrency('USD');
Currency::getCurrency('RUB');
Currency::format(120, 'RUB');
Currency::convert(10.00, 'USD', 'UAH', false);
Currency::format(123, 'RUB');
bash
php artisan vendor:publish --provider="Fomvasss\Currency\ServiceProvider"