PHP code example of flexmind-software / currency-rate
1. Go to this page and download the library: Download flexmind-software/currency-rate library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
flexmind-software / currency-rate example snippets
use FlexMindSoftware\CurrencyRate\Events\CurrencyRateSaved;
use Illuminate\Support\Facades\Event;
Event::listen(CurrencyRateSaved::class, function (CurrencyRateSaved $event) {
// $event->rates contains the saved records
});
### Examples
Run for today's rates using all configured drivers: