PHPackages                             niland/api-client-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. niland/api-client-php

ActiveLibrary

niland/api-client-php
=====================

Niland API Client for PHP

1.2.1(9y ago)35.1k2MITPHP

Since Mar 21Pushed 9y ago4 watchersCompare

[ Source](https://github.com/niland/api-client-php)[ Packagist](https://packagist.org/packages/niland/api-client-php)[ Docs](https://github.com/niland/api-client-php)[ RSS](/packages/niland-api-client-php/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

Niland API PHP Wrapper
======================

[](#niland-api-php-wrapper)

Setup
-----

[](#setup)

To setup your project, follow these steps:

1. Install the package via [Composer](https://getcomposer.org/doc/00-intro.md):

```
composer require niland/api-client-php
```

2. Next you'll have to initialize the client with your API-Key. You can find it on [your Niland API account](https://api.niland.io/2.0/dashboard/your-account).

```
// composer autoload
require __DIR__ . '/vendor/autoload.php';
$client = new \NilandApi\Client(YOUR_API_KEY);
```

Quick Start
-----------

[](#quick-start)

List tracks using pagination

```
$response = $client->get('tracks', array('page_size' => 10, 'page' => 2));
```

Retrieve a track by its reference

```
$response = $client->get('tracks/reference/YOUR_REFERENCE');
```

Find tracks by similarity and/or tags

```
$response = $client->get('tracks/search', array(
    'similar_ids' => array(1234),
    'tag_ids'     => array(21, 41)
));
```

Post a track

```
$response = $client->post('tracks', array(
    'title'     => 'foobar',
    'artist'    => 'foobar',
    'reference' => 'foobar',
    'tags'      => array(21, 41),
    'audio'     => fopen('/path/to/your/audio/file.mp3', 'r')
));
```

Known Issues
------------

[](#known-issues)

You will get a `400 Bad Request` if you use a URL in `fopen` with PHP 7. It generate an invalid chunk body error.

The following exemple will generate a 400:

```
$response = $client->post('tracks', array(
    'title'     => 'foobar',
    'artist'    => 'foobar',
    'reference' => 'foobar',
    'tags'      => array(21, 41),
    'audio'     => fopen('http://myawesomewebsite.com/file.mp3', 'r')
));
```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity66

Established project with proven stability

 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

Every ~67 days

Total

4

Last Release

3503d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8836b681f5141fe02f0b880019e98fdb64c224a1063fd1af26073959aea3b01b?d=identicon)[BruceWouaigne](/maintainers/BruceWouaigne)

---

Top Contributors

[![BruceWouaigne](https://avatars.githubusercontent.com/u/2487186?v=4)](https://github.com/BruceWouaigne "BruceWouaigne (10 commits)")

### Embed Badge

![Health badge](/badges/niland-api-client-php/health.svg)

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

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k21](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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