eluafidev/laravel-easyfixerapi

Laravel package/client for fixer.io api, a foreign exchange rates and currency conversion API.

v1.0.0 2024-04-06 17:33 UTC

This package is auto-updated.

Last update: 2025-04-11 10:05:59 UTC


README

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.