PHPackages                             bukku-accounting/open-exchange-rates-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. bukku-accounting/open-exchange-rates-php

ActiveLibrary[API Development](/categories/api)

bukku-accounting/open-exchange-rates-php
========================================

Open Exchange Rates PHP SDK

161PHP

Since Jan 18Pushed 3y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Open Exchange Rates SDK in PHP
------------------------------

[](#open-exchange-rates-sdk-in-php)

#### About the Open Exchange Rates API

[](#about-the-open-exchange-rates-api)

Open Exchange Rates provides a simple, lightweight and portable JSON API with live and historical foreign exchange (forex) rates for over 200 worldwide and digital currencies, via a simple and easy-to-integrate API, in JSON format. Data are tracked and blended algorithmically from multiple reliable sources, ensuring fair and unbiased consistency.

Exchange rates published through the Open Exchange Rates API are collected from multiple reliable providers, blended together and served up in JSON format for everybody to use. There are no complex queries, confusing authentication methods or long-term contracts.

#### Features

[](#features)

- Latest up-to-date Exchange Rates
- Historical Exchange Rates back to 1st January 1999
- Time Series Exchange Rates for a given time period
- Currency Converstion
- Historical Open, High Low and Close

Website:

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

[](#installation)

#### With Composer

[](#with-composer)

```
composer require bukku-accounting/open-exchange-rates-php
```

Getting Started
---------------

[](#getting-started)

#### Use it as a class

[](#use-it-as-a-class)

```
use BukkuAccounting\OpenExchangeRates\OerClient;
$oerClient = new OerClient('YOUR_APP_ID');
```

Available functions
-------------------

[](#available-functions)

- All the API endpoints listed in  are made available to use
- Methods can be chained
- All functions return an object
- Will throw an exception with the message and status code if there is an error

#### Example: Request latest rates via "latest" endpoint

[](#example-request-latest-rates-via-latest-endpoint)

```
$res = $oerClient
    ->base('SGD')
    ->symbols('USD,EUR,GBP')
    ->latest();
```

#### Example: Request historical rates via "historical" endpoint

[](#example-request-historical-rates-via-historical-endpoint)

```
$res = $oerClient
    ->date('2022-01-01')
    ->base('SGD')
    ->symbols('USD,EUR,GBP')
    ->historical();
```

#### Example: Request the list of currency symbols available via "currencies" endpoint

[](#example-request-the-list-of-currency-symbols-available-via-currencies-endpoint)

```
$res = $oerClient
    ->currencies();
```

#### Example: Request historical rates for a given time period via "time\_series" endpoint

[](#example-request-historical-rates-for-a-given-time-period-via-time_series-endpoint)

```
$res = $oerClient
    ->start('2000-01-01')
    ->end('2000-12-31')
    ->base('SGD')
    ->symbols('USD,EUR,GBP')
    ->time_series();
```

#### Example: Convert any value from one currency to another via "convert" endpoint

[](#example-convert-any-value-from-one-currency-to-another-via-convert-endpoint)

```
$res = $oerClient
    ->value(10000)
    ->from('SGD')
    ->to('MYR')
    ->convert();
```

#### Example: Request the historical Open, High Low, Close and Average for a given time period via "ohlc" endpoint

[](#example-request-the-historical-open-high-low-close-and-average-for-a-given-time-period-via-ohlc-endpoint)

```
$res = $oerClient
    ->start_time('2017-07-17T00:00:00Z')
    ->period('1w')
    ->base('SGD')
    ->symbols('USD,EUR,GBP')
    ->ohlc();
```

#### Example: Request the plan information and usage statistics via "usage" endpoint

[](#example-request-the-plan-information-and-usage-statistics-via-usage-endpoint)

```
$res = $oerClient
    ->usage();
```

Reference API Documentation
---------------------------

[](#reference-api-documentation)

Visit  for more details on each function

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity23

Early-stage or recently created project

 Bus Factor1

Top contributor holds 71.4% 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://www.gravatar.com/avatar/636a3ca2d3988e185ec8824cb6f5ef1f302c6fc110624fa05c2555b4b71f7da5?d=identicon)[bukku-accounting](/maintainers/bukku-accounting)

---

Top Contributors

[![sabrina-bukku](https://avatars.githubusercontent.com/u/114472187?v=4)](https://github.com/sabrina-bukku "sabrina-bukku (10 commits)")[![bukku-jye](https://avatars.githubusercontent.com/u/114322300?v=4)](https://github.com/bukku-jye "bukku-jye (4 commits)")

### Embed Badge

![Health badge](/badges/bukku-accounting-open-exchange-rates-php/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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