Skip to content

Library download currency rate and save in database, It's designed to be extended by any available data source.

License

Notifications You must be signed in to change notification settings

flexmind-software/currency-rate

Repository files navigation

Currency Rate Downloader

Laravel Version Support Packagist PHP Version Support Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Installation

You can install the package via composer:

composer require flexmind-software/currency-rate

You can publish and run the migrations with:

php artisan vendor:publish --provider="FlexMindSoftware\CurrencyRate\CurrencyRateProvider" --tag="currency-rate-migrations"
php artisan migrate

You can publish the config file with:

php artisan vendor:publish --provider="FlexMindSoftware\CurrencyRate\CurrencyRateProvider" --tag="currency-rate-config"

This is the contents of the published config file:

return [
    'driver' => env('FLEXMIND_CURRENCY_RATE_DRIVER', 'poland'),
    'table-name' => env('FLEXMIND_CURRENCY_RATE_TABLENAME', 'currency_rates')
];

Usage

php artisan flexmind:currency-rate [options] [--] [<date>]

Arguments:
  date               Date to download currency rate, if empty is today
  
Options:
  --queue[=QUEUE]    Queue name, if set "none" cmd run without add job to queue [default: "none"]
  --driver[=DRIVER]  Driver to download rate [default: "all"]

Testing

composer test

Sources

Country name Central Bank Driver name
Europe
European Central Bank european-central-bank
Albania Bankës së Shqipërisë albania
Armenia Hayastani Hanrapetut’yan Kentronakan Bank armenia
Azerbaijan Azərbaycan Mərkəzi Bankı azerbaijan
Belarus Нацыянальны банк Рэспублікі Беларусь belarus
Bosnia and Herzegovina Централна банка Босне и Херцеговине bosnia-and-herzegovina
Bulgaria Bŭlgarska narodna banka bulgaria
Croatia Hrvatska Narodna Banka croatia
Czech Republic Česká národní banka czech-republic
Danmark Danmarks Nationalbanks denmark
Georgia Sakartvelos Erovnuli Bank’i georgia
United Kingdom Bank of England england
Hungary Magyar Nemzeti Bank hungary
Iceland Seðlabanki Íslands iceland
Macedonia Narodna Banka na Republika Severna Makedonija macedonia
Moldavia Banca Naţională a Moldovei moldavia
Norway Norges Bank norway
Poland Narodowy Bank Polski poland
Russia Tsentral'nyy bank Rossiyskoy Federatsii russia
Romania Banca Națională a României romania
Serbia Narodna banka Srbije serbia
Switzerland Banca naziunala svizra switzerland
Sweden Sveriges Riksbank sweden
Turkey Türkiye Cumhuriyet Merkez Bankası turkey
Ukraine Natsionalʹnyy bank Ukrayiny ukraine
Asia
Israel בנק ישראל israel
North America
Canada Banqueu du Canada canada
Oceania
Australia Reserve Bank of Australia australia

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

Library download currency rate and save in database, It's designed to be extended by any available data source.

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Sponsor this project

Languages