Download the PHP package finller/laravel-forex without Composer
On this page you can find all versions of the php package finller/laravel-forex. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download finller/laravel-forex
More information about finller/laravel-forex
Files in finller/laravel-forex
Package laravel-forex
Short Description Forex for Laravel
License MIT
Homepage https://github.com/ElegantEngineeringTech/laravel-forex
Informations about the package laravel-forex
Laravel Forex
Laravel Forex is a simple and flexible package for retrieving the latest and historical foreign exchange rates in your Laravel application.
By default, it uses the free tier from exchangerate-api.com, but you can easily configure it to use any other Forex provider.
Installation
Install via Composer:
Publish the configuration file:
Configuration
Here’s the default configuration that will be published to config/forex.php
:
Usage
Get Latest Rates
Get Historical Rates
Convert Money Between Currencies
You can easily convert a Money
instance from one currency to another using the Forex::convert()
method.
This method ensures high-precision conversions by leveraging the brick/money
PHP library.
Note: The returned value is a Money
object representing the amount in the target currency.
Testing
Run the test suite with:
Changelog
See the CHANGELOG for details on recent updates.
Contributing
Contributions are welcome! Please read the CONTRIBUTING guide for details.
Security
If you discover any security-related issues, please refer to our security policy.
Credits
- Quentin Gabriele
- All Contributors
License
This package is open-source software licensed under the MIT license.
All versions of laravel-forex with dependencies
brick/money Version ^0.10.1
illuminate/contracts Version ^10.0||^11.0||^12.0
saloonphp/cache-plugin Version ^3.0
saloonphp/laravel-plugin Version ^3.0
saloonphp/rate-limit-plugin Version ^2.0
saloonphp/saloon Version ^3.0
spatie/laravel-package-tools Version ^1.14.0