Download the PHP package ranium/fixerio-php-client without Composer
On this page you can find all versions of the php package ranium/fixerio-php-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ranium/fixerio-php-client
More information about ranium/fixerio-php-client
Files in ranium/fixerio-php-client
Package fixerio-php-client
Short Description A PHP client for fixer.io foreign exchange rates and currency conversion API.
License MIT
Informations about the package fixerio-php-client
Fixer.io PHP Client
Provides an easy to use client for fixer.io exchange rates and currency conversion JSON API.
Looking for a Laravel package? Please use ranium/laravel-fixerio instead of this library.
Installation
This project can be installed using Composer:
composer require ranium/fixerio-php-client
Usage
This package uses's Guzzle's Service Description to make HTTP Requests to the fixer.io API.
To use this package in your application, simply use the package and instantiate the client as follows
Here's how you can access the fixer.io's endpoints:
Note: access_key
parameter is sent by default in all requests so no need to pass it in the argument while calling methods. However, you can include it should you want to override the access key used while instantiating the fixerio client.
Latest rates endpoint
Historical rates endpoint
Convert endpoint
Time-Series data endpoint
Fluctuation data endpoint
The response for all the above calls will be a JSON object. Please refer fixer.io's documentation for further details about various endpoints, request parameters and response objects.
License
This package is open-sourced software licensed under the MIT license.