Download the PHP package pavlepredic/currency-converter without Composer
On this page you can find all versions of the php package pavlepredic/currency-converter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pavlepredic/currency-converter
More information about pavlepredic/currency-converter
Files in pavlepredic/currency-converter
Package currency-converter
Short Description Tools for performing currency conversion
License GPL-3.0+
Informations about the package currency-converter
Currency converter
Tools for performing currency conversion. This library might be used with Symfony2 framework, but this is not a requirement. You can use the basic exchange rate conversion utility with vanilla PHP. In order to use the storage layer, you will need Doctrine. This library is a work in progress.
Installing
Basic usage example
Storing exchange rates to DB using Doctrine
-
Create an ORM Entity that implements PavlePredic\CurrencyConverter\Entity\ExchangeRateInterface
-
Implement PavlePredic\CurrencyConverter\Repository\ExchangeRateRepositoryInterface. The repository might look something like this:
-
Update the exchange rates using CurrencyUpdater service:
- Now you can use the CurrencyConverter service using DbExchangeRatesProvider
All versions of currency-converter with dependencies
symfony/http-kernel Version ~2.2
symfony/config Version ~2.3
symfony/dependency-injection Version ~2.4
symfony/console Version ~2.0
symfony/framework-bundle Version ~2.2
doctrine/common Version ~2.4