PHPackages                             bfgasparin/independent-reserve - 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. bfgasparin/independent-reserve

ActiveLibrary

bfgasparin/independent-reserve
==============================

PHP Client for Independent Reserve API

02.6kPHP

Since Oct 18Pushed 2y agoCompare

[ Source](https://github.com/bfgasparin/independent-reserve)[ Packagist](https://packagist.org/packages/bfgasparin/independent-reserve)[ RSS](/packages/bfgasparin-independent-reserve/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Independent Reserve Client Library for PHP
==========================================

[](#independent-reserve-client-library-for-php)

**THIS LIBRARY IS IN BETA RELEASE, SOME API ENDPOINTS ARE NOT SUPPORTED YET.**

*This library requires a minimum PHP version of 7.2*

This is a PHP client library to interact with Independent Reserve's API. To use this, you'll need an Independent Reserve account and an API Key. [Create an account](https://www.independentreserve.com) and generate an API Key in the Settings menu. This is currently a beta release.

- [Installation](#installation)
- [Usage](#usage)
- [Examples](#examples)
- [Contributing](#contributing)

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

[](#installation)

To install the PHP client library to your project, I recommend using [Composer](https://getcomposer.org/).

```
composer require bfgasparin/independent-reserve
```

> You don't need to clone this repository to use this library in your own projects. Use Composer to install it from Packagist.

If you're new to Composer, here are some resources that you may find useful:

- [Composer's Getting Started page](https://getcomposer.org/doc/00-intro.md) from Composer project's documentation.
- [A Beginner's Guide to Composer](https://scotch.io/tutorials/a-beginners-guide-to-composer) from the good people at ScotchBox.

TO use the [private methods](https://www.independentreserve.com/api#private) of Independent Reserve API, you'll need to have [created an Independent Reserve account](https://www.independentreserve.com).

Usage
-----

[](#usage)

If you're using Composer, make sure the autoloader is included in your project's bootstrap file:

```
require_once "vendor/autoload.php";
```

To interact with only [public methods](https://www.independentreserve.com/api#public), you do need any API KEY, so you just need to create a client:

```
$client = IndependentReserve\IndependentReserve::instance();
```

If you need to interact with [private methods](https://www.independentreserve.com/api#private), you must create the client with the API KEY and API SECRET:

Create a client with your API key and secret:

```
$client = IndependentReserve\IndependentReserve::instance(API_KEY, API_SECRET);
```

For testing purposes you may want to change the URL that `nexmo-php` makes requests to from `api.independentreserve.com` to something else. You can do this by providing a base uri as the third parameter when creating a `IndependentReserve\IndependentReserve` instance.

```
$client = IndependentReserve\IndependentReserve::instance(API_KEY, API_KEY, 'https://example.com');
```

Examples
--------

[](#examples)

To call the API methods, you usually just need to call the method as in documentation. If the method requires parameters, you must pass the parameter in the same order of the documentation.

If the API response is an object in the documentation, the response will be a \\StdClass instance, otherwise, the response will be a primitive type response.

See the available public and private functions in the [docs](https://www.independentreserve.com/api)

### Some Public Methods Examples

[](#some-public-methods-examples)

```
$codes = $client->getValidPrimaryCurrencyCodes();
```

```
$codes = $client->getValidSecondaryCurrencyCodes();
```

```
$codes = $client->getValidSecondaryCurrencyCodes();
```

```
$summary = $client->getMarketSummary(
    'Xbt' // primary currency code
    'Usd' // secondary currency code
);
```

### Some Private Methods Examples

[](#some-private-methods-examples)

```
$fees = $client->getBrokerageFees();
```

```
$order = $client->PlaceMarketOrder(
    'Xbt' // primary currency code
    'Usd' // secondary currency code
    'MarketBid' // order type,
    '0.012' // volume
)
```

Contributing
------------

[](#contributing)

To contribute to the library or docs, [create an issue](https://github.com/bfgasparin/independent-reserve/issues) or [a pull request](https://github.com/bfgasparin/independent-reserve/pulls).

License
-------

[](#license)

This library is released under the [MIT License](LICENSE.txt)

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity20

Early-stage or recently created project

 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://www.gravatar.com/avatar/036ca3436e5b296ee1497e86e599f083b689849a396263da2c6575938d570d86?d=identicon)[bfgasparin](/maintainers/bfgasparin)

---

Top Contributors

[![bfgasparin](https://avatars.githubusercontent.com/u/4076928?v=4)](https://github.com/bfgasparin "bfgasparin (12 commits)")

### Embed Badge

![Health badge](/badges/bfgasparin-independent-reserve/health.svg)

```
[![Health](https://phpackages.com/badges/bfgasparin-independent-reserve/health.svg)](https://phpackages.com/packages/bfgasparin-independent-reserve)
```

PHPackages © 2026

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