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

ActiveLibrary[API Development](/categories/api)

aveiv/open-exchange-rates-api
=============================

PHP wrapper for Open Exchange Rates API

v2.1.1(3y ago)10292.3k↑95.3%8[1 PRs](https://github.com/aveiv/open-exchange-rates-api/pulls)MITPHPPHP ^7.4|^8.0

Since Aug 20Pushed 2y ago1 watchersCompare

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

READMEChangelog (3)Dependencies (3)Versions (9)Used By (0)

PHP wrapper for Open Exchange Rates API
---------------------------------------

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

[![Latest Stable Version](https://camo.githubusercontent.com/8017424826b4b8f8a1f10aeeef0d4f7d40bd0718994c1508380c0d7cb16d239c/68747470733a2f2f706f7365722e707567782e6f72672f61766569762f6f70656e2d65786368616e67652d72617465732d6170692f76)](//packagist.org/packages/aveiv/open-exchange-rates-api) [![Total Downloads](https://camo.githubusercontent.com/a14b961999ea4782a8145069bbf9d48d09c758e0e8d80899b6ab4113e9b02fd3/68747470733a2f2f706f7365722e707567782e6f72672f61766569762f6f70656e2d65786368616e67652d72617465732d6170692f646f776e6c6f616473)](//packagist.org/packages/aveiv/open-exchange-rates-api) [![License](https://camo.githubusercontent.com/9b8568dd7e80030bf9eea427485b649ecea19690c3ec39209c3b8c581c902425/68747470733a2f2f706f7365722e707567782e6f72672f61766569762f6f70656e2d65786368616e67652d72617465732d6170692f6c6963656e7365)](//packagist.org/packages/aveiv/open-exchange-rates-api)

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

[](#installation)

```
composer require aveiv/open-exchange-rates-api

```

Usage example
-------------

[](#usage-example)

```
$api = new OpenExchangeRates('YOUR_APP_ID');
// or $client = new OpenExchangeRates('YOUR_APP_ID', new YourHttpClient());

// Getting currencies

$api->currencies(); // returns ["USD" => "United States Dollar", ...]

$api->currencies([
    'show_alternative' => true, // include alternative currencies
    'show_inactive' => true,    // include historical/inactive currencies
]);

// Getting latest rates

$api->latest(); // returns ["USD" => 1.0, ...]

$api->latest([
    'base' => 'EUR',             // base currency
    'symbols' => ['CNY', 'USD'], // limit results to specific currencies
    'show_alternative' => true,  // include alternative currencies
]);

// Getting historical rates

$api->historical(new \DateTime('2020-01-01')); // ["USD" => 1.0, ...]

$api->historical(new \DateTime('2020-01-01'), [
    'base' => 'EUR',             // base currency
    'symbols' => ['CNY', 'USD'], // limit results to specific currencies
    'show_alternative' => true,  // include alternative currencies
]);

// Currency conversion

$api->convert(99.99, 'USD', 'EUR'); // returns the converted value (from USD to EUR)
```

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity43

Moderate usage in the ecosystem

Community14

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 77.8% 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

Every ~427 days

Recently: every ~550 days

Total

8

Last Release

1293d ago

Major Versions

v1.2.0 → v2.0.02020-08-20

PHP version history (3 changes)v1.0.0PHP &gt;=5.5.0

v2.0.0PHP ^7.4

v2.1.1PHP ^7.4|^8.0

### Community

Maintainers

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

---

Top Contributors

[![aveiv](https://avatars.githubusercontent.com/u/1551486?v=4)](https://github.com/aveiv "aveiv (7 commits)")[![mrgodhani](https://avatars.githubusercontent.com/u/1529009?v=4)](https://github.com/mrgodhani "mrgodhani (1 commits)")[![nitogel](https://avatars.githubusercontent.com/u/10072011?v=4)](https://github.com/nitogel "nitogel (1 commits)")

---

Tags

apicurrency

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

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

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

PHPackages © 2026

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