A PHP wrapper for the currencyapi.com API
This package is a PHP wrapper for currencyapi.com that aims to make the usage of the API as easy as possible in your project.
You can install the package via composer:
composer require everapi/currencyapi-php
Initialize the API with your API Key (get one for free at currencyapi.com):
$currencyApi = new \CurrencyApi\CurrencyApi\CurrencyApiClient('YOUR-API-KEY');
Afterwards you can use the endpoints of the API like this:
echo $currencyApi->latest([ 'base_currency' => 'EUR', 'currencies' => 'USD', ]);
Endpoints accessible with a free account:
These advanced endpoints currently require a paid subscription:
Learn more about endpoints, parameters and response data structure in the docs.
The MIT License (MIT). Please see License File for more information.