otherguy/php-currency-api

View on GitHub
examples/example.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

use Otherguy\Currency\DriverFactory;
use Otherguy\Currency\Symbol;

$fixer = DriverFactory::make('fixerio');
$fixer->accessKey('your-access-key-goes-here');
$result = $fixer->from(Symbol::EUR)->get(Symbol::USD);

print_r($result->all());