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

Overview

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.

You might also like...
Laravel Sliding Window Rate Limiter

Laravel Sliding Window Rate Limiter This package provides an easy way to limit any action during a specified time window. You may be familiar with Lar

A money and currency library for PHP

Brick\Money A money and currency library for PHP. Introduction Working with financial data is a serious matter, and small rounding mistakes in an appl

The Cache component provides an extended PSR-6 implementation for adding cache to your applications.

Symfony PSR-6 implementation for caching The Cache component provides an extended PSR-6 implementation for adding cache to your applications. It is de

Extended translation module

Multi-lingual Support Extending Phalcon Framework v5 Translations Module Example e.g. login.json File: { "form": { "label": {

Buy and sell crypto top 100 crypto with our fake currency. Donate to and use our referal links for discounts

PLEASE ENABLE SQLITE3 AND GD OR GD2 IN XAMPP TO RUN THE APP! (SEE HOW_TO_SETUP_XAMPP.gif) ![alt text](https://github.com/Tby23rd/Project1-Cryptosimul

An opinionated extension package for Laravel Orchid to extend its table handling capabilities, and some further useful helper methods.
An opinionated extension package for Laravel Orchid to extend its table handling capabilities, and some further useful helper methods.

OrchidTables An opinionated extension package for Laravel Orchid to extend its table handling capabilities, and some further useful helper methods. In

The swiss army knife for Magento developers, sysadmins and devops. The tool provides a huge set of well tested command line commands which save hours of work time. All commands are extendable by a module API.

netz98 magerun CLI tools for Magento 2 The n98 magerun cli tools provides some handy tools to work with Magento from command line. Build Status Latest

#️⃣  Generate, Save, and Route Stripe-like Hash IDs for Laravel Eloquent Models
#️⃣ Generate, Save, and Route Stripe-like Hash IDs for Laravel Eloquent Models

Using this package you can generate, save and, route Stripe-like Hash Ids for your Eloquent Models. Hash Ids are short, unique, and non-sequential, an

Owner
Flexmind. Krzysztof Bielecki
Flexmind. Krzysztof Bielecki
YCOM Impersonate. Login as selected YCOM user 🧙‍♂️in frontend.

YCOM Impersonate Login as selected YCOM user in frontend. Features: Backend users with admin rights or YCOM[] rights, can be automatically logged in v

Friends Of REDAXO 17 Sep 12, 2022
Currency is a simple PHP library for current and historical currency exchange rates & crypto exchange rates. based on the free API exchangerate.host

Currency Currency is a simple PHP library for current and historical currency exchange rates & crypto exchange rates. based on the free API exchangera

Amr Shawky 19 Dec 12, 2022
World Currency list in PHP constants and in array (Currency::USD)

World Currency list in PHP constants and in array (Currency::USD) If you need to work with currencies in the code and describe each time "USD", "EUR"

Krepysh 4 Jun 27, 2022
Converts any PocketMine-MP 3.0 extended blocks into PM4 native blocks!

ExtendedBlocksConverter Converts any PocketMine-MP 3.0 extended blocks into PM4 native blocks! Yes, you heard right, this plugin can convert any lefto

Covered123 6 Jun 4, 2022
Allow any Discord user to sign in to your website and save their discord user information for later use.

Simple Discord SSO ( Single Sign-On ) Requires at least: 5.0 Tested up to: 5.8.3 Stable tag: 1.0.2 Requires PHP: 7.4 License: GPLv2 or later License U

null 2 Oct 7, 2022
Generally, a graceful shutdown is preferable in the case of any OS that saves its state

Graceful Shutdown with PHP Generally, a graceful shutdown is preferable in the case of any OS that saves its state.

Leonardo Carmo 17 Oct 14, 2022
Ip2region is a offline IP location library with accuracy rate of 99.9% and 0.0x millseconds searching performance. DB file is ONLY a few megabytes with all IP address stored. binding for Java,PHP,C,Python,Nodejs,Golang,C#,lua. Binary,B-tree,Memory searching algorithm

Ip2region是什么? ip2region - 准确率99.9%的离线IP地址定位库,0.0x毫秒级查询,ip2region.db数据库只有数MB,提供了java,php,c,python,nodejs,golang,c#等查询绑定和Binary,B树,内存三种查询算法。 Ip2region特性

Lion 12.6k Dec 30, 2022
QuidPHP/Main is a PHP library that provides a set of base objects and collections that can be extended to build something more specific.

QuidPHP/Main is a PHP library that provides a set of base objects and collections that can be extended to build something more specific. It is part of the QuidPHP package and can also be used standalone.

QuidPHP 4 Jul 2, 2022
📦 "PHP type names" contains the list of constants for the available PHP data types.

PHP type names PHP type names ?? Description Simple library containing the list of constants for the available PHP data types. Use those constant type

♚ PH⑦ de Soria™♛ 4 Dec 15, 2022