Skip to content
everapihqPublic

About

A PHP wrapper for fxapi.com

Resources

Stars

0 stars

Watchers

2 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

fxapi-php - PHP Foreign Exchange Rates Converter

Latest Version on Packagist Total Downloads

This package is a PHP wrapper for fxapi.com, a foreign exchange rates API, that aims to make the usage of the API as easy as possible in your project.

Installation

You can install the package via composer:

composer require everapi/fxapi-php

Usage

Initialize the API with your API Key (get one for free at fxapi.com):

$fxApi = new \FxApi\FxApi\FxApiClient('YOUR-API-KEY');

Afterwards you can use the endpoints of the API like this:

echo $fxApi->latest([
    'base_currency' => 'EUR',
    'currencies' => 'USD',
]);

Endpoints accessible with a free account:

  • status
  • currencies
  • latest
  • historical

These advanced endpoints currently require a paid subscription:

  • convert
  • range

Learn more about endpoints, parameters and response data structure in the docs.

License

The MIT License (MIT). Please see License File for more information.

About

A PHP wrapper for fxapi.com

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages