Download the PHP package bigoen/currency-api-bundle without Composer
On this page you can find all versions of the php package bigoen/currency-api-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bigoen/currency-api-bundle
More information about bigoen/currency-api-bundle
Files in bigoen/currency-api-bundle
Package currency-api-bundle
Short Description Currency api bundle for Symfony project.
License LGPL-3.0
Informations about the package currency-api-bundle
Currency Api Bundle
This Symfony bundle provides integration with the Currency Beacon API, allowing you to fetch and manage currency data within your Symfony application.
Installation
-
Install the bundle using Composer:
- Enable the bundle in your
config/bundles.php
file:
Configuration
Add the following environment variables to your .env
file:
Usage
To use the Currency API service, you can inject it into your services or use it manually:
Commands
This bundle provides commands to manage currency data:
-
To update currencies, use:
- To fetch the latest or historical daily exchange rates, use:
Alternatively, you can use the CurrencyBeaconService
directly in your code:
-
To update currencies manually, use the
updateCurrencies
method: - To update daily exchange rates manually, use the
updateDailyExchangeRates
method:
To query daily exchange rates by date and currency, you can use the DailyExchangeRateRepository
:
- Example query:
License
This bundle is released under the MIT License. See the bundled LICENSE
file for details.
All versions of currency-api-bundle with dependencies
doctrine/doctrine-bundle Version ^2.0
nesbot/carbon Version ^2.72
symfony/http-client Version ^6.0|^7.0
symfony/string Version ^6.0|^7.0
symfony/validator Version ^6.0|^7.0