Download the PHP package rubin/openexchangerates without Composer
On this page you can find all versions of the php package rubin/openexchangerates. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rubin/openexchangerates
More information about rubin/openexchangerates
Files in rubin/openexchangerates
Package openexchangerates
Short Description OpenExchangeRates API connector
License
Informations about the package openexchangerates
OpenExchangeRates REST API
PHP implementation for the OpenExchangeRates.org REST API. This library is based on the REST API docs.
Installation
With composer:
Usage
Create API connector:
Extra parameters
Set Base Currency ('base')
The default base currency of the API is US Dollars (USD), but you can request exchange rates relative to a different base currency, where available, by setting the base parameter in your request. `
Get Specific Currencies ('symbols')
By default, the API returns rates for all currencies, but if you need to minimise transfer size, you can request a limited subset of exchange rates, where available, by setting the symbols parameter in your request. `
Alternative Rates ('show_alternative')
You may now request latest and historical rates for unofficial, black market and alternative digital currencies by adding a simple API parameter onto your request. `
API endpoints
/latest
Get the latest exchange rates available from the Open Exchange Rates API.
The most simple route in our API, latest.json provides a standard response object containing all the conversion rates for all of the currently available symbols/currencies, labeled by their international-standard 3-letter ISO currency codes.
The latest rates will always be the most up-to-date data available on your plan.
/historical
Get historical exchange rates for any date available from the Open Exchange Rates API, currently going back to 1st January 1999.
The historical rates returned are the last values published for a given UTC day (up to and including 23:59:59 UTC), except for the current UTC date.
/currencies
Get a JSON list of all currency symbols available from the Open Exchange Rates API, along with their full names, for use in your integration.
This list will always mirror the currencies available in the latest rates (given as their 3-letter codes).
/usage
Get basic plan information and usage statistics for an Open Exchange Rates App ID
All versions of openexchangerates with dependencies
ext-json Version *
guzzlehttp/guzzle Version ^7.0
cuyz/valinor Version ^1.13