PHPackages                             stephan-strate/php-music-brainz-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. stephan-strate/php-music-brainz-api

ActiveLibrary[API Development](/categories/api)

stephan-strate/php-music-brainz-api
===================================

PHP wrapper for MusicBrainz api. Supports object-oriented access using repositories and factories.

v0.0.2-alpha(3y ago)51031[5 PRs](https://github.com/stephan-strate/php-music-brainz-api/pulls)MITPHPPHP ^7.4 || ^8.0

Since Dec 25Pushed 3y ago1 watchersCompare

[ Source](https://github.com/stephan-strate/php-music-brainz-api)[ Packagist](https://packagist.org/packages/stephan-strate/php-music-brainz-api)[ Docs](https://github.com/stephan-strate/php-music-brainz-api)[ GitHub Sponsors](https://github.com/stephan-strate)[ RSS](/packages/stephan-strate-php-music-brainz-api/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (2)Dependencies (13)Versions (8)Used By (0)

[![MusicBrainz](https://raw.githubusercontent.com/metabrainz/metabrainz-logos/master/logos/MusicBrainz/PNG/MusicBrainz_logo_mini.png)](https://raw.githubusercontent.com/metabrainz/metabrainz-logos/master/logos/MusicBrainz/PNG/MusicBrainz_logo_mini.png)

[MusicBrainz](https://musicbrainz.org/) API Wrapper
===================================================

[](#musicbrainz-api-wrapper)

MusicBrainz is an open music encyclopedia that collects music metadata and makes it available to the public.

Recommended to use together with [stephan-strate/php-cover-art-archive-api](https://github.com/stephan-strate/php-cover-art-archive-api).

Inspired by [php-github-api](https://github.com/KnpLabs/php-github-api) and [php-tmdb](https://github.com/php-tmdb/api).

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

[](#installation)

Using composer:

```
$ composer require stephan-strate/php-music-brainz-api php-http/guzzle7-adapter:^1.0 http-interop/http-factory-guzzle:^1.0

```

Why `php-http/guzzle7-adapter:^1.0`? This library is decoupled from any http client using [HTTPlug](http://httplug.io/).

Usage
-----

[](#usage)

First you want to create the client:

```
$client = new \MusicBrainz\Client('MyApplication', '1.1.0', 'contact@example.com');
```

Using this client, you can retrieve all other objects/apis.

### Repository

[](#repository)

### Api

[](#api)

The api implementatioon returns the raw json response of the endpoint. You might want to use the repository implementation instead to get the parsed objects.

```
$release = $client->release();
```

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

[](#contributing)

Help &amp; Donate
-----------------

[](#help--donate)

I am very curious about projects that use my libraries. Please drop me a short message about what you use the library for. You can find my contact information on my profile (LinkedIn, E-mail).

If this project saved you time and money or you just appreciate what I am doing, please consider sponsoring me 😊

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~223 days

Total

2

Last Release

1379d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/95c6bea4d86f01f74afc3462e6d72fdbc9348f34e345fc4b7ffb355c1d5b7837?d=identicon)[stephan-strate](/maintainers/stephan-strate)

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (35 commits)")[![stephan-strate](https://avatars.githubusercontent.com/u/19595615?v=4)](https://github.com/stephan-strate "stephan-strate (14 commits)")

---

Tags

api-clientapi-wrappermusic-brainzphpphpapilibrarymusicbrainz

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/stephan-strate-php-music-brainz-api/health.svg)

```
[![Health](https://phpackages.com/badges/stephan-strate-php-music-brainz-api/health.svg)](https://phpackages.com/packages/stephan-strate-php-music-brainz-api)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[apigee/apigee-client-php

Client library for connecting to the Apigee Edge API.

27558.7k3](/packages/apigee-apigee-client-php)[mikealmond/musicbrainz

A PHP library for accessing the MusicBrainz API

6385.1k1](/packages/mikealmond-musicbrainz)[paddlehq/paddle-php-sdk

Paddle's PHP SDK for Paddle Billing.

53301.7k](/packages/paddlehq-paddle-php-sdk)[dhope0000/lxd

PHP-based API wrapper for LXD REST API.

136.2k](/packages/dhope0000-lxd)[brd6/notion-sdk-php

Notion SDK for PHP

5918.0k](/packages/brd6-notion-sdk-php)

PHPackages © 2026

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