PHP code example of peso / ecb-service

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

    

peso / ecb-service example snippets




use Peso\Peso\CurrencyConverter;
use Peso\Services\EuropeanCentralBankService;
use Symfony\Component\Cache\Adapter\FilesystemAdapter;
use Symfony\Component\Cache\Psr16Cache;

bash
composer install peso/ecb-service php-http/discovery guzzlehttp/guzzle symfony/cache