Download the PHP package d3catalyst/exchangerate without Composer
On this page you can find all versions of the php package d3catalyst/exchangerate. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download d3catalyst/exchangerate
More information about d3catalyst/exchangerate
Files in d3catalyst/exchangerate
Download d3catalyst/exchangerate
More information about d3catalyst/exchangerate
Files in d3catalyst/exchangerate
Vendor d3catalyst
Package exchangerate
Short Description Package currency exchange between two currencies
License MIT
Homepage http://laravel.d3catalyst.com/l4-exchange-rate/
Package exchangerate
Short Description Package currency exchange between two currencies
License MIT
Homepage http://laravel.d3catalyst.com/l4-exchange-rate/
Please rate this library. Is it a good library?
Informations about the package exchangerate
laravel-4-exchangerate
Laravel 4 Library for calling http://rate-exchange.appspot.com/currency API.
This library provides an easy way to make the currency exchange, a much needed application in ecommerce systems.
Just install the package, add the config and it is ready to use!
Requirements
- PHP >= 5.3.7
- cURL Extension
Installation
Add in composer.json
"d3catalyst/exchangerate": "dev-master"
Add the service provider and facade in your config/app.php
Service Provider
D3Catalyst\Exchangerate\Laravel4\ServiceProviders\ExchangerateServiceProvider
Facade
'Exchange' => 'D3Catalyst\Exchangerate\Laravel4\Facades\Exchangerate',
Usage
- Usage with default setters
Set initial config
Exchange::setCurrency('DLS','EUR');
Get exchange value / return int or float value
Exchange::getExchangeValue();
- Usage with independent setters
Set country currency code from
Exchange::setCurrencyFrom($currency);
Set country currency code to
Exchange::setCurrencyTo($currency);
Set amount - number
Exchange::setAmount($amount);
Get exchange value / return int or float value
Exchange::getExchangeValue();
- Common
Get full exchange rate information
Exchange::getExchangeRateInfo();
All versions of exchangerate with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.3.7
ext-curl Version *
lib-curl Version *
ext-curl Version *
lib-curl Version *
The package d3catalyst/exchangerate contains the following files
Loading the files please wait ....