Download the PHP package alfaexchange/laravel-package without Composer
On this page you can find all versions of the php package alfaexchange/laravel-package. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download alfaexchange/laravel-package
More information about alfaexchange/laravel-package
Files in alfaexchange/laravel-package
Package laravel-package
Short Description Laravel SDK package for working with the alfaexchange.io API
License MIT
Informations about the package laravel-package
alfaexchange Laravel SDK Package
alfaexchange Laravel Package - PHP SDK Laravel for work with Alfa Exchange.
- Introduction
- Install
- Configure
- Methods
- Latest
Introduction
The laravel-alfaexchange package allows you to build web and console applications based on Laravel framework that integrate with your Alfa Exchange account. With over 15 exchange rate data sources, the Alfa Exchange API is delivering exchanging rates data for more than 170 world currencies. This API has several endpoints, where each of them serves a different purpose, use case. The endpoints include functionalities like receiving the latest exchange rates information for a specific set, or for all currencies; conversion from one to another currency; receiving data Time-series for multiple or for one currency, and preserving the API daily for the fluctuation data.
With laravel-alfaexchange API SDK you can:
- Obtain real-time, accurate and reliable currency exchange rate data for hundreds of worldwide currencies, updated as often as every 60 seconds.
- Our API is integrated with a number of highly reputable foreign exchange rate sources, offering the most recent and accurate rates for 200+ pairs.
- Make use of a scalable infrastructure that can handle anything from a few requests a day up to thousands of API requests per second.
- Integrate the API in under 10 minutes without the need of a credit card. You will get 250 monthly requests for free, premium plans start at only $9.99.
Install
To install you can install the package via composer
You should publish the migration and the config/alfaexchange.php
config file with
Configure
Project setup is done through the .env
of your project
ALFAEXCHANGE_API_KEY
- Personal Device API key for your applicationALFAEXCHANGE_TIMEOUT
- Maximum wait request from Alfa Exchange API
Methods
The AlfaExchange\Api\AlfaExchangeService
instance can execute all methods which provided Alfa Exchange API
Latest
Fetch a single currency exchange rate or all available currency rates
Params
Param | Type | Description |
---|---|---|
from |
string |
Base currency 3-letter symbol |
to |
string |
Optional parameter. Target currency 3-letter symbol |
Response object
Returned AlfaExchange\Api\Objects\ExchangeObject with structure |
Param | Type | Description |
---|---|---|---|
success |
boolean |
Success trigger | |
timestamp |
timestamp |
Last currency updated | |
base |
string |
Base currency 3-letter symbol | |
rates |
AlfaExchange\Api\Objects\RatesObject |
List of rates |
Example request object