Download the PHP package greksazoo/mnb-exchange-laravel without Composer
On this page you can find all versions of the php package greksazoo/mnb-exchange-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package mnb-exchange-laravel
MNB Exchange Rate package for Laravel
This is a MNB Exchange Rate query package for Laravel v8 or above.
Requirements
Package requires PHP v7.4 or above, with Soap and SimpleXml. Not tested with previous versions of Laravel.
Know-how
This package is mainly based on top of MNB package and MNB Laravel package.
Installation
You can install the package via composer:
Configuration
Export
config/mnb-exchange.php
Usage
Access via facade
Resolve by application container
Access refresh date by reference
You can check the feed date by passing a $date variable to some methods. These methods will make variable to be a Carbon instance.
Available methods
Won't use cache
These methods won't use and update cache.
- currentExchangeRate($code, &$date = null): Currency
- currentExchangeRates(&$date = null): array of Currency
Will use cache
These methods will use cache.
- exchangeRate($code, &$date = null): single Currency
- exchangeRates(&$date = null): array of currencies
- currencies(): array of strings (each is currency code)
- hasCurrency($code): bool
Testing
Changelog
Please see CHANGELOG for more information what has changed recently.
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
- Zoltan Greksa
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
Laravel Package Boilerplate
This package was generated using the Laravel Package Boilerplate.
All versions of mnb-exchange-laravel with dependencies
ext-simplexml Version *
ext-soap Version *
illuminate/support Version ^8.0|^9.0|^10.0
illuminate/cache Version ^5.0|^6.0|^7.0|^8.0|^9.0|^10.0