Download the PHP package offline-agency/laravel-bank-of-italy without Composer
On this page you can find all versions of the php package offline-agency/laravel-bank-of-italy. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download offline-agency/laravel-bank-of-italy
More information about offline-agency/laravel-bank-of-italy
Files in offline-agency/laravel-bank-of-italy
Package laravel-bank-of-italy
Short Description A simple Laravel package to information from the Bank of Italy
License MIT
Homepage https://github.com/offline-agency/laravel-bank-of-italy
Informations about the package laravel-bank-of-italy
Laravel Bank of Italy
A simple Laravel package to retrieve information from the Bank of Italy.
Installation
You can install the package via composer:
You need to publish config file with:
Usage
Currently, the package provides a method to retrieve exchange rates between currencies.
Basic
In this example, the method getExchangeRates()
returns an instance of OfflineAgency\LaravelBankOfItaly\Entities\ExchangeRate\ExchangeRates
. You can use the getItems()
method to retrieve an array of ExchangeRate
objects. Each ExchangeRate
object contains the following properties:
- currency: The name of the currency (e.g., "Dollaro USA")
- currencyIsoCode: The ISO code of the currency (e.g., "USD")
- currencyUicCode: The UIC code of the currency (e.g., "001")
- rate: The exchange rate (e.g., "1.0724")
- rateConvention: The rate convention (e.g., "Quantità di valuta estera per 1 Euro")
- referenceDate: The reference date of the rate (format: Y-m-d)
Custom Query Parameters
You can also provide custom query parameters to filter the results. Here are the fields you can specify:
Error Handling
- If there is a validation error, the method returns an instance of
Illuminate\Support\MessageBag
. - If there is an error during the API call, the method returns an instance of
OfflineAgency\LaravelBankOfItaly\Entities\Error
, which contains an error property.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security-related issues, please email [email protected] instead of using the issue tracker.
Credits
- Offline Agency
- Giacomo Fabbian
- Nicolas Sanavia
- All Contributors
About us
Offline Agency is a web design agency based in Padua, Italy. You'll find an overview of our projects on our website.
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-bank-of-italy with dependencies
ext-json Version *
illuminate/support Version ^8.0|^9.0
guzzlehttp/guzzle Version 7.0.1|^7.2
illuminate/container Version ^8.0|^9.0
illuminate/http Version ^8.0|^9.0