PHPackages                             moussaclarke/beatportapi - 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. moussaclarke/beatportapi

ActiveLibrary[API Development](/categories/api)

moussaclarke/beatportapi
========================

Beatport Api Class

162393PHP

Since Nov 8Pushed 5y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Beatport API PHP Class
======================

[](#beatport-api-php-class)

A simple PHP class to query the Beatport Catalog API.

The use case is for a server to server context - for example I used it to build a simple Beatport RSS feed for my label. NB: The class requests an access token each time it's instantiated and doesn't try to persist it to e.g. DB for later use.

It returns an array which you can then manipulate as you please.

Aims
----

[](#aims)

- Login and query the Beatport Catalog API
- Send back a simple array with the query results

Requirements
------------

[](#requirements)

- PHP 7.3+
- Beatport API Credentials (You'll need to request those from Beatport)
- Guzzle 7 (via composer)

Install
-------

[](#install)

```
composer require moussaclarke/beatportapi

```

Usage
-----

[](#usage)

```
use MoussaClarke\BeatportApi;

// auth parameters
$parameters = [
  'client_id'=> 'CLIENT_ID', // Your Beatport Client Id
  'client_secret' => 'CLIENT_SECRET', // Your Beatport Client Secret
  ];

// query parameters
$query = [
  'label_id' => 'xyz', // a filter facet
  'resource' => 'releases', // The Beatport API resource to query
  'perPage' => '150' // Number of results per page
  ];

$api = new BeatportApi ($parameters); // initialise
$response = $api->queryApi ($query); // run the query
print_r ($response); // do something with response

```

You can check the [Beatport API documentation](https://oauth-api.beatport.com/) for which queries you can make and which parameters are required.

Disclaimer
----------

[](#disclaimer)

Totally and utterly alpha, and likely to break at any point. Not guaranteed to work as intended in any way, so use at your own risk.

Todo
----

[](#todo)

- Handle errors
- Support other bits of the API, e.g. curation

Maintained
----------

[](#maintained)

By [Moussa Clarke](https://github.com/moussaclarke/)

Contribute
----------

[](#contribute)

Feel free to submit bug reports, suggestions and pull requests. Alternatively just fork it and make your own thing.

License
-------

[](#license)

MIT

Music
-----

[](#music)

Outside of geekdom, I'm a DJ, producer and label manager, go check me out:

- [Moussa Clarke](http://www.moussaclarke.co.uk)
- [Glamour Punk](http://www.glamourpunk.co.uk)

###  Health Score

22

—

LowBetter than 23% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 Bus Factor1

Top contributor holds 97.8% 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/ee574cb4adefd185b5e783e3208afd3d4d27187c8eb1e6f14f627428499cc715?d=identicon)[moussaclarke](/maintainers/moussaclarke)

---

Top Contributors

[![moussaclarke](https://avatars.githubusercontent.com/u/13017858?v=4)](https://github.com/moussaclarke "moussaclarke (45 commits)")[![Filoz](https://avatars.githubusercontent.com/u/5341996?v=4)](https://github.com/Filoz "Filoz (1 commits)")

### Embed Badge

![Health badge](/badges/moussaclarke-beatportapi/health.svg)

```
[![Health](https://phpackages.com/badges/moussaclarke-beatportapi/health.svg)](https://phpackages.com/packages/moussaclarke-beatportapi)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

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

A PHP wrapper for Twilio's API

1.6k92.9M270](/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.1M452](/packages/google-gax)

PHPackages © 2026

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