Download the PHP package flexmind-software/currency-rate without Composer

On this page you can find all versions of the php package flexmind-software/currency-rate. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package currency-rate

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:

You can publish and run the migrations with:

You can publish the config file with:

This is the contents of the published config file:

The drivers array defines which currency rate providers are available when running the command with --driver=all. Add or remove entries from this list to customise the drivers used in your application. See config/currency-rate.php for additional configuration options, including the cache TTL for HTTP requests.

Available Drivers

Country / Source Driver
Albania albania
Armenia armenia
Australia australia
Azerbaijan azerbaijan
BCEAO bceao
Belarus belarus
Bosnia and Herzegovina bosnia-and-herzegovina
Botswana botswana
Bulgaria bulgaria
Canada canada
China china
Croatia croatia
Czech Republic czech-republic
Denmark denmark
England england
European Central Bank european-central-bank
Fiji fiji
Georgia georgia
Hungary hungary
Iceland iceland
Israel israel
Macedonia macedonia
Moldavia moldavia
Norway norway
Poland poland
Romania romania
Russia russia
Serbia serbia
Sweden sweden
Switzerland switzerland
Turkey turkey
Ukraine ukraine

Usage

Events

The CurrencyRate::saveIn method dispatches a CurrencyRateSaved event once rates are persisted. Consumers may listen for this event to trigger downstream actions:

bash php artisan flexmind:currency-rate bash php artisan flexmind:currency-rate 2023-09-15 bash php artisan flexmind:currency-rate --driver=canada bash php artisan flexmind:currency-rate --queue=default bash php artisan flexmind:currency-rate --queue=none bash composer test



## Sources

<table>
    <thead>
    <tr>
        <th>Country name</th>
        <th>Central Bank</th>
        <th>Driver name</th>
    </tr>
    </thead>
    <tbody>
        <tr>
            <td colspan="4">Europe</td>
        </tr>
        <tr>
            <td></td>
            <td><a href="https://ecb.europa.eu" target="_blank">European Central Bank</a></td>
            <td>european-central-bank</td>
        </tr>
        <tr>
            <td>Albania</td>
            <td><a href="https://www.bankofalbania.org/home" target="_blank">Bankës së Shqipërisë</a></td>
            <td>albania</td>
        </tr>          
        <tr>
            <td>Armenia</td>
            <td><a href="https://www.cba.am/en/sitepages/default.aspx" target="_blank">Hayastani Hanrapetut’yan Kentronakan Bank</a></td>
            <td>armenia</td>
        </tr>        
        <tr>
            <td>Azerbaijan</td>
            <td><a href="https://www.cbar.az" target="_blank">Azərbaycan Mərkəzi Bankı</a></td>
            <td>azerbaijan</td>
        </tr>
        <tr>
            <td>Belarus</td>
            <td><a href="https://www.nbrb.by/engl/" target="_blank">Нацыянальны банк Рэспублікі Беларусь</a></td>
            <td>belarus</td>
        </tr>
        <tr>
            <td>Bosnia and Herzegovina</td>
            <td><a href="https://www.cbbh.ba/?lang=en" target="_blank">Централна банка Босне и Херцеговине</a></td>
            <td>bosnia-and-herzegovina</td>
        </tr>
        <tr>
            <td>Bulgaria</td>
            <td><a href="https://www.bnb.bg/?toLang=_EN" target="_blank">Bŭlgarska narodna banka</a></td>
            <td>bulgaria</td>
        </tr>
        <tr>
            <td>Croatia</td>
            <td><a href="https://www.hnb.hr/home" target="_blank">Hrvatska Narodna Banka</a></td>
            <td>croatia</td>
        </tr>
        <tr>
            <td>Czech Republic</td>
            <td><a href="https://www.cnb.cz/en/index.html" target="_blank">Česká národní banka</a></td>
            <td>czech-republic</td>
        </tr>
        <tr>
            <td>Danmark</td>
            <td><a href="https://www.nationalbanken.dk" target="_blank">Danmarks Nationalbanks</a></td>
            <td>denmark</td>
        </tr>
        <tr>
            <td>Georgia</td>
            <td><a href="https://www.nbg.gov.ge" target="_blank">Sakartvelos Erovnuli Bank’i</a></td>
            <td>georgia</td>
        </tr>
        <tr>
            <td>United Kingdom</td>
            <td><a href="https://www.bankofengland.co.uk/" target="_blank">Bank of England</a></td>
            <td>england</td>
        </tr>
        <tr>
            <td>Hungary</td>
            <td><a href="https://www.mnb.hu/en/" target="_blank">Magyar Nemzeti Bank</a></td>
            <td>hungary</td>
        </tr>
        <tr>
            <td>Iceland</td>
            <td><a href="https://cb.is" target="_blank">Seðlabanki Íslands</a></td>
            <td>iceland</td>
        </tr>
        <tr>
            <td>Macedonia</td>
            <td><a href="https://www.nbrm.mk/" target="_blank">Narodna Banka na Republika Severna Makedonija</a></td>
            <td>macedonia</td>
        </tr>          
        <tr>
            <td>Moldavia</td>
            <td><a href="https://www.bnm.md/" target="_blank">Banca Naţională a Moldovei</a></td>
            <td>moldavia</td>
        </tr>        
        <tr>
            <td>Norway</td>
            <td><a href="https://www.norges-bank.no/en/" target="_blank">Norges Bank</a></td>
            <td>norway</td>
        </tr>
        <tr>
            <td>Poland</td>
            <td><a href="https://www.nbp.pl/" target="_blank">Narodowy Bank Polski</a></td>
            <td>poland</td>
        </tr>
        <tr>
            <td>Russia</td>
            <td><a href="https://cbr.ru/" target="_blank">Tsentral'nyy bank Rossiyskoy Federatsii</a></td>
            <td>russia</td>
        </tr>
        <tr>
            <td>Romania</td>
            <td><a href="https://www.bnro.ro/" target="_blank">Banca Națională a României</a></td>
            <td>romania</td>
        </tr>        
        <tr>
            <td>Serbia</td>
            <td><a href="https://www.nbs.rs/" target="_blank">Narodna banka Srbije</a></td>
            <td>serbia</td>
        </tr>
        <tr>
            <td>Switzerland</td>
            <td><a href="https://www.snb.ch/" target="_blank">Banca naziunala svizra</a></td>
            <td>switzerland</td>
        </tr>
        <tr>
            <td>Sweden</td>
            <td><a href="https://www.riksbank.se/en-gb/" target="_blank">Sveriges Riksbank</a></td>
            <td>sweden</td>
        </tr>
        <tr>
            <td>Turkey</td>
            <td><a href="https://www.tcmb.gov.tr/" target="_blank">Türkiye Cumhuriyet Merkez Bankası</a></td>
            <td>turkey</td>
        </tr>
        <tr>
            <td>Ukraine</td>
            <td><a href="https://www.bank.gov.ua/" target="_blank">Natsionalʹnyy bank Ukrayiny</a></td>
            <td>ukraine</td>
        </tr>
        <tr>
            <td colspan="4">Africa</td>
        </tr>
        <tr>
            <td>Benin</td>
            <td><a href="https://www.bceao.int" target="_blank">Central Bank of West African States (BCEAO)</a></td>
            <td>bceao</td>
        </tr>
        <tr>
            <td>Botswana</td>
            <td><a href="https://www.bankofbotswana.bw" target="_blank">Bank of Botswana</a></td>
            <td>botswana</td>
        </tr>
        <tr>
            <td>Burkina Faso</td>
            <td><a href="https://www.bceao.int" target="_blank">Central Bank of West African States (BCEAO)</a></td>
            <td>bceao</td>
        </tr>
        <tr>
            <td>Guinea-Bissau</td>
            <td><a href="https://www.bceao.int" target="_blank">Central Bank of West African States (BCEAO)</a></td>
            <td>bceao</td>
        </tr>
        <tr>
            <td>Ivory Coast</td>
            <td><a href="https://www.bceao.int" target="_blank">Central Bank of West African States (BCEAO)</a></td>
            <td>bceao</td>
        </tr>
        <tr>
            <td>Mali</td>
            <td><a href="https://www.bceao.int" target="_blank">Central Bank of West African States (BCEAO)</a></td>
            <td>bceao</td>
        </tr>
        <tr>
            <td>Niger</td>
            <td><a href="https://www.bceao.int" target="_blank">Central Bank of West African States (BCEAO)</a></td>
            <td>bceao</td>
        </tr>
        <tr>
            <td>Senegal</td>
            <td><a href="https://www.bceao.int" target="_blank">Central Bank of West African States (BCEAO)</a></td>
            <td>bceao</td>
        </tr>
        <tr>
            <td>Togo</td>
            <td><a href="https://www.bceao.int" target="_blank">Central Bank of West African States (BCEAO)</a></td>
            <td>bceao</td>
        </tr>
        <tr>
            <td colspan="4">Asia</td>
        </tr>
        <tr>
            <td>China</td>
            <td><a href="http://www.chinamoney.com.cn/english/bmkcpr/" target="_blank">CFETS - China Foreign Exchange Trade System</a></td>
            <td>china</td>
        </tr>        
        <tr>
            <td>Israel</td>
            <td><a href="https://www.boi.org.il/" target="_blank">בנק ישראל</a></td>
            <td>israel</td>
        </tr>
        <tr>
            <td colspan="4">North America</td>
        </tr>
        <tr>
            <td>Canada</td>
            <td><a href="https://www.bankofcanada.ca/" target="_blank">Banqueu du Canada</a></td>
            <td>canada</td>
        </tr>
        <tr>
            <td colspan="4">Oceania</td>
        </tr>
        <tr>
            <td>Australia</td>
            <td><a href="https://www.rba.gov.au/" target="_blank">Reserve Bank of Australia</a></td>
            <td>australia</td>
        </tr>       
        <tr>
            <td>Fiji</td>
            <td><a href="https://www.rbf.gov.fj/" target="_blank">Reserve Bank of Fiji</a></td>
            <td>fiji</td>
        </tr>
    </tbody>
</table>

## Changelog

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

## Contributing

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

### Adding new locales

Translations for driver descriptions live in `resources/langs/{locale}/description.php`.
To contribute a new locale:

1. Create a new directory for the locale under `resources/langs` (for example `es` for Spanish).
2. Copy `resources/langs/en/description.php` into that directory and translate the strings.
3. Submit a pull request with the new translation file.

## Credits

- [Krzysztof Bielecki](https://github.com/qwerkon)
- [All Contributors](https://github.com/flexmind-software/currency-rate/contributors)

## License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

All versions of currency-rate with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4
spatie/laravel-package-tools Version ^1.4.3
illuminate/contracts Version ^8.37
illuminate/support Version ^8.37
ext-simplexml Version *
ext-json Version *
ext-libxml Version *
ext-soap Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package flexmind-software/currency-rate contains the following files

Loading the files please wait ....