Skip to content

Repository files navigation

Fixer Client for Peso

PackagistPHPLicenseGitHub ActionsCodecov

This is an exchange data provider for Peso that retrieves data from Fixer.

Installation

composer require peso/fixer-service

Install the service with all recommended dependencies:

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

Example

<?phpusePeso\Peso\CurrencyConverter;
usePeso\Services\Fixer\AccessKeyType;
usePeso\Services\FixerService;
useSymfony\Component\Cache\Adapter\FilesystemAdapter;
useSymfony\Component\Cache\Psr16Cache;
require__DIR__ . '/vendor/autoload.php';
$cache = newPsr16Cache(newFilesystemAdapter(directory: __DIR__ . '/cache'));
$service = newFixerService('...', AccessKeyType::Free, cache: $cache);
$converter = newCurrencyConverter($service);
// 14419.61 as of 2025-06-20echo$converter->convert('12500', 'EUR', 'USD', 2), PHP_EOL;

Documentation

Read the full documentation here: https://phpeso.org/v1.x/services/fixer.html

Support

Please file issues on our main repo at GitHub: https://github.com/phpeso/fixer-service/issues

License

The library is available as open source under the terms of the MIT License.

About

Fixer.io data provider for Peso

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages