PHPackages                             dant89/ix-api-client - 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. dant89/ix-api-client

ActiveLibrary[API Development](/categories/api)

dant89/ix-api-client
====================

A PHP Client for the IX-API Project.

2.0.2(2y ago)44174[1 PRs](https://github.com/dant89/ix-api-php-client/pulls)MITPHPPHP ^8.1

Since Sep 16Pushed 1y ago2 watchersCompare

[ Source](https://github.com/dant89/ix-api-php-client)[ Packagist](https://packagist.org/packages/dant89/ix-api-client)[ Docs](https://ix-api.net)[ RSS](/packages/dant89-ix-api-client/feed)WikiDiscussions master-v2 Synced 3d ago

READMEChangelog (2)Dependencies (4)Versions (14)Used By (0)

IX-API PHP Client
=================

[](#ix-api-php-client)

[![Latest Stable Version](https://camo.githubusercontent.com/2fb399dff88bf7ab8a5cf308cb83774e4c71210f3925489f691ee8c3a06023de/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f767072652f64616e7438392f69782d6170692d636c69656e742e737667)](https://packagist.org/packages/dant89/ix-api-client)[![Github Issues](https://camo.githubusercontent.com/c1d17102b537f6d3c71f6f458478db65a360ed0ad74c35cf67732db0949dadb0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f64616e7438392f69782d6170692d7068702d636c69656e74)](https://github.com/dant89/ix-api-php-client/issues)

A lightweight PHP API client for the [IX-API](https://ix-api.net).

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

[](#installation)

To install, run `composer require dant89/ix-api-client` in the root of your project or add `dant89/ix-api-client` to your composer.json.

View the tagged versions to choose between `v1` and `v2` implementations of this client.

```
"require": {
    "dant89/ix-api-client": "^LATEST_VERSION_TAG"
}
```

Usage
-----

[](#usage)

Use your provided key / secret credentials for the given implementor URL to return and then set a bearer token:

```
use Dant89\IXAPIClient\Client;

// Create base client
$client = new Client(IXAPI_URL);

// Get a bearer token from key / secret
$response = $client->getHttpClient(HttpClientType::AUTH)
    ->postAuthToken(IXAPI_KEY, IXAPI_SECRET);

// Check for valid response status
if ($response->getStatus() === 200) {
    $client->setBearerToken($response->getContent()['access_token']);
}
```

With the bearer token set, you can return data from all endpoints that require authentication.

**Get Product Offerings:**

```
// Query for products
$response = $client->getHttpClient(HttpClientType::PRODUCT_OFFERINGS)
    ->get();

// Check for valid response and set the array of products
if ($response->getStatus() === 200) {
    $productOfferings = $response->getContent();
}
```

**Method Support and Filters:**

All base clients have support for `get`, `delete`, `post`, `patch`.

Additional methods are available where supported, for example `getStatistics`, `getLoa`.

```
$singleItem = $client->getHttpClient(HttpClientType::CONTACTS)
    ->get('item-uuid')
    ->getContent();

$filteredItems = $client->getHttpClient(HttpClientType::CONTACTS)
    ->get(null, ['managing_account' => 'uuid-123'])
    ->getContent();

$response = $client->getHttpClient(HttpClientType::CONTACTS)
    ->post([
        'managing_account' => 'uuid-123',
        'consuming_account' => 'uuid-456',
        'name' => 'sample contact',
    ]);

$client->getHttpClient(HttpClientType::CONTACTS)
    ->patch('item-uuid', [
        'name' => 'renamed sample contact',
    ]);

$client->getHttpClient(HttpClientType::CONTACTS)
    ->delete('item-uuid');

// Query for connections timeseries data
$timeseries = $client->getHttpClient(HttpClientType::CONNECTIONS)
    ->getStatisticTimeseries('connection-123-uuid', '30d')
    ->getContent();
```

Authentication
--------------

[](#authentication)

You will need to contact an exchange to create an API key / secret combination and find out the URL of their IX-API implementation.

Questions
---------

[](#questions)

Q. The IX-API is OpenAPI 3 compliant, why don't I just create a client using a tool such as [Swagger Codegen](https://github.com/swagger-api/swagger-codegen)?

A. Please do! This client is intended to be very lightweight and something you can use to jump in, build on and experiment with. Clients generated by automated tools, such as [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) can have more depth and functionality that you may find your application requires.

Contributions
-------------

[](#contributions)

Contributions to the client are welcome, to contribute please:

1. Fork this repository
2. Create your feature branch
3. Commit your changes
4. Push to the branch
5. Create a new pull request

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 90.5% 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 ~160 days

Recently: every ~317 days

Total

10

Last Release

989d ago

Major Versions

0.0.4 → 1.0.02020-03-11

1.0.1 → 2.0.02023-08-30

1.0.2 → 2.0.22023-08-30

PHP version history (2 changes)0.0.1PHP ^7.1

2.0.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/09e9dab2a010158a6b2a381ba3f41f3f30887305090f40b4b667803d9986483d?d=identicon)[dant89](/maintainers/dant89)

---

Top Contributors

[![dant89](https://avatars.githubusercontent.com/u/1819818?v=4)](https://github.com/dant89 "dant89 (38 commits)")[![Jesusalvaradoh](https://avatars.githubusercontent.com/u/31272823?v=4)](https://github.com/Jesusalvaradoh "Jesusalvaradoh (3 commits)")[![dnl-jst](https://avatars.githubusercontent.com/u/712897?v=4)](https://github.com/dnl-jst "dnl-jst (1 commits)")

---

Tags

ix-apiix-api-clientix-api-php-clientixapiixapi-php-clientphp-api-clientphp-clientapiclientixapiix-api

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/dant89-ix-api-client/health.svg)

```
[![Health](https://phpackages.com/badges/dant89-ix-api-client/health.svg)](https://phpackages.com/packages/dant89-ix-api-client)
```

###  Alternatives

[openai-php/symfony

Symfony Bundle for OpenAI

215715.5k3](/packages/openai-php-symfony)[deepseek-php/deepseek-php-client

deepseek PHP client is a robust and community-driven PHP client library for seamless integration with the Deepseek API, offering efficient access to advanced AI and data processing capabilities.

47073.9k5](/packages/deepseek-php-deepseek-php-client)[smnandre/pagespeed-api

PageSpeed Insight PHP Api Client 🚀 Analyse web pages for performances metrics, core web vitals...

1511.5k](/packages/smnandre-pagespeed-api)[google-gemini-php/symfony

Symfony Bundle for Gemini

149.4k1](/packages/google-gemini-php-symfony)

PHPackages © 2026

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