PHPackages                             leewillis77/open-exchange-rates-api - 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. leewillis77/open-exchange-rates-api

ActiveLibrary[API Development](/categories/api)

leewillis77/open-exchange-rates-api
===================================

A PHP wrapper for the 'open exchange rates' API.

v1.0(11y ago)3241GPL-2.0PHPPHP &gt;=5.3.0

Since Sep 24Pushed 4y ago2 watchersCompare

[ Source](https://github.com/leewillis77/open-exchange-rates-api)[ Packagist](https://packagist.org/packages/leewillis77/open-exchange-rates-api)[ Docs](https://github.com/leewillis77/open-exchange-rates-api)[ RSS](/packages/leewillis77-open-exchange-rates-api/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (4)Versions (2)Used By (0)

PHP wrapper for [Open Exchange Rates](openexchangerates.org) API
================================================================

[](#php-wrapper-for-open-exchange-rates-api)

A PHP wrapper around the [Open Exchange Rates](openexchangerates.org) API.

Installation
============

[](#installation)

- Clone the repository
- Make sure you have [composer](http://getcomposer.org/) set up and working
- Install dependencies by running `composer install`
- Copy the sample config file (`config/config.yml.sample`) to `config/config.yml`
- Update config/config.yml with your API credentials from "open exchange rates"
- API responses are cached in the cache/ subfolder - **disallow access to this in your web server config**.

Notes
=====

[](#notes)

- Docblocks are missing in many places - patches welcome
- PHPUnit is set up, and some test cases are present. More would be welcome.
- Requires PHP 5.3 or above.

Examples
========

[](#examples)

See the examples folder for a simple example of how to use the API wrapper. This is designed to get you going, and is not a complete reference, or see the code sample below:

```
use OpenExchangeRates\Config;
use OpenExchangeRates\Request\ConversionRequest;

require('vendor/autoload.php');

$config = new Config('config/config.yml');
$request = new ConversionRequest($config);

try {
    $response = $request->convert(100, 'USD', 'GBP');
} catch (\Exception $e) {
    die('Request exception received: '.$e->getMessage());
}
echo "100 USD is " . $response . " GBP\n";
```

Disclaimer
==========

[](#disclaimer)

This API is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the the developer(s) be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.

Although every attempt is made to ensure quality, NO guarantees are given whatsoever of accuracy, validity, availability, or fitness for any purpose - please use at your own risk.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4248d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e92b9ea36de63e6ba4b14eb2a2f95f8d6e130b96b6f2552e771fc5b06967f858?d=identicon)[leewillis77](/maintainers/leewillis77)

---

Top Contributors

[![leewillis77](https://avatars.githubusercontent.com/u/1097338?v=4)](https://github.com/leewillis77 "leewillis77 (16 commits)")

---

Tags

apicurrencyexchange rate

### Embed Badge

![Health badge](/badges/leewillis77-open-exchange-rates-api/health.svg)

```
[![Health](https://phpackages.com/badges/leewillis77-open-exchange-rates-api/health.svg)](https://phpackages.com/packages/leewillis77-open-exchange-rates-api)
```

###  Alternatives

[darkaonline/l5-swagger

OpenApi or Swagger integration to Laravel

2.9k34.0M112](/packages/darkaonline-l5-swagger)[knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

2.3k12.2M45](/packages/knuckleswtf-scribe)

PHPackages © 2026

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