PHPackages                             eelkevdbos/openexchangerates-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. eelkevdbos/openexchangerates-php

ActiveLibrary[API Development](/categories/api)

eelkevdbos/openexchangerates-php
================================

OpenExchangeRates.org API wrapper written in PHP

6182[1 issues](https://github.com/eelkevdbos/openexchangerates-php/issues)PHP

Since Feb 10Pushed 11y ago2 watchersCompare

[ Source](https://github.com/eelkevdbos/openexchangerates-php)[ Packagist](https://packagist.org/packages/eelkevdbos/openexchangerates-php)[ RSS](/packages/eelkevdbos-openexchangerates-php/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

openexchangerates-php
=====================

[](#openexchangerates-php)

[![Build Status](https://camo.githubusercontent.com/816c38ab717f85aa4039039c052ab6280b5d1f766187f2c94ade322f35435038/68747470733a2f2f7472617669732d63692e6f72672f65656c6b657664626f732f6f70656e65786368616e676572617465732d7068702e737667)](https://travis-ci.org/eelkevdbos/openexchangerates-php) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/bc96e881fa211d0af861ba1ec417e08525ed55a70ff391169eabd38b5d47d142/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f65656c6b657664626f732f6f70656e65786368616e676572617465732d7068702f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/eelkevdbos/openexchangerates-php/?branch=master) [![Code Coverage](https://camo.githubusercontent.com/f090333f8c011a08ce3732a924087d79578b84bc8f120e0404a694b4eba67eb2/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f65656c6b657664626f732f6f70656e65786368616e676572617465732d7068702f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/eelkevdbos/openexchangerates-php/?branch=master)

OpenExchangeRates.org API Wrapper in PHP

Installation
------------

[](#installation)

`composer require eelkevdbos/openexchangerates-php`

Basic Usage
-----------

[](#basic-usage)

```
use EvdB\OpenExchangeRates\OpenExchangeRates;
use GuzzleHttp\Client;

//construct request client
$client = new Client(['base_url' => OpenExchangeRates::getBaseUrl(true)]);

//construct openexchangerates instance
$exchange = new OpenExchangeRates(['app_id' => 'THIS_IS_YOUR_APP_ID'], $client);

//available methods below, some methods require the purchase of a specific openexchangerates.org plan
$exchange->latest();
$exchange->historical('2015-01-01');
$exchange->timeSeries('2015-01-01', '2015-01-02');
$exchange->convert('12', 'USD', 'EUR');
$exchange->currencies();

//all methods above can also be called with a jsonp callback
$exchange->jsonp('latest', [], 'myCallbackName');
$exchange->jsonp('timeSeries', ['2015-01-01', '2015-01-02'], 'myTimeseriesCallback');
```

All methods return the json data structure as noted in the [API docs](https://openexchangerates.org/documentation) provided by OpenExchangeRates.org.

Simple caching
--------------

[](#simple-caching)

Guzzle provides us with a cache subscriber for the request client. For more information, please read the [cache-subscriber](https://github.com/guzzle/cache-subscriber) docs.

Disclaimer
----------

[](#disclaimer)

This project is not affiliated in any way with OpenExchangeRates.org. It is intended to provide a useful service and comes with no warranty or any kind. The author is not responsible for any damages or problems incurred during usage of the API. Use at your own risk.

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1001306?v=4)[Eelke van den Bos](/maintainers/eelkevdbos)[@eelkevdbos](https://github.com/eelkevdbos)

---

Top Contributors

[![eelkevdbos](https://avatars.githubusercontent.com/u/1001306?v=4)](https://github.com/eelkevdbos "eelkevdbos (37 commits)")

### Embed Badge

![Health badge](/badges/eelkevdbos-openexchangerates-php/health.svg)

```
[![Health](https://phpackages.com/badges/eelkevdbos-openexchangerates-php/health.svg)](https://phpackages.com/packages/eelkevdbos-openexchangerates-php)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
