PHP code example of peso / fixer-service
1. Go to this page and download the library: Download peso/fixer-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 / fixer-service example snippets
use Peso\Peso\CurrencyConverter;
use Peso\Services\Fixer\AccessKeyType;
use Peso\Services\FixerService;
use Symfony\Component\Cache\Adapter\FilesystemAdapter;
use Symfony\Component\Cache\Psr16Cache;
9.61 as of 2025-06-20
echo $converter->convert('12500', 'EUR', 'USD', 2), PHP_EOL;
bash
composer install peso/fixer-service php-http/discovery guzzlehttp/guzzle symfony/cache