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)3271GPL-2.0PHPPHP &gt;=5.3.0

Since Sep 24Pushed 3w 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 2w ago

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

38

—

LowBetter than 83% of packages

Maintenance62

Regular maintenance activity

Popularity13

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

4297d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1097338?v=4)[Lee Willis](/maintainers/leewillis77)[@leewillis77](https://github.com/leewillis77)

---

Top Contributors

[![leewillis77](https://avatars.githubusercontent.com/u/1097338?v=4)](https://github.com/leewillis77 "leewillis77 (17 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.9k36.4M126](/packages/darkaonline-l5-swagger)[knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

2.3k13.5M60](/packages/knuckleswtf-scribe)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1175.2k](/packages/rcsofttech-audit-trail-bundle)[currency-cloud/client

A PHP library which implements the complete functionality of v2 of the The Currency Cloud API.

17338.5k](/packages/currency-cloud-client)[cloudcreativity/json-api-testing

PHPUnit test helpers to check JSON API documents.

141.7M4](/packages/cloudcreativity-json-api-testing)

PHPackages © 2026

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