Looking to hire Laravel developers? Try LaraJobs

laravel-easyfixerapi maintained by eluafidev

Description
Laravel package/client for fixer.io api, a foreign exchange rates and currency conversion API.
Author
Last update
2024/11/11 10:18 (dev-master)
License
Links
Downloads
5
Tags

Comments
comments powered by Disqus

Laravel Easy Fixer.io API

Provides an easy to use Laravel package for fixer.io exchange rates and currency conversion JSON API.

Installation

Run the following from the root of your Laravel app.

composer require eluafidev/laravel-easyfixerapi

Usage

use ElouafiDev\EasyFixerApi\FixerApi;

$fixerio = new FixerApi(" KEY Fixer API ");

$fixerio->apiget(); // Get currency values from API

$fixerio->CurrencyExchange(1,"USD","MAD")
/*If the result is -1, you have an error*/

License

This package is open-sourced software licensed under the MIT license.