PHPackages                             podcasthosting/podcast-client-spotify - 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. podcasthosting/podcast-client-spotify

ActiveLibrary[API Development](/categories/api)

podcasthosting/podcast-client-spotify
=====================================

Create (add) and remove (delete) podcasts on Spotify

v0.13.0(2mo ago)93272MITPHPPHP &gt;=8.1

Since Dec 16Pushed 2mo agoCompare

[ Source](https://github.com/podcasthosting/podcast-client-spotify)[ Packagist](https://packagist.org/packages/podcasthosting/podcast-client-spotify)[ Docs](https://github.com/podcasthosting/podcast-client-spotify)[ RSS](/packages/podcasthosting-podcast-client-spotify/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (10)Dependencies (5)Versions (16)Used By (0)

Install
-------

[](#install)

Via Composer

```
$ composer require podcasthosting/podcast-client-spotify
```

Intro
-----

[](#intro)

Create (add), get status, update url and remove (delete) podcasts on Spotify (DeliveryClient).

You can also fetch analytics data from a different Spotify API (AnalyticsClient).

You´ll need to be a certified podcast provider (aggregator) to use these APIs.

Documentation
-------------

[](#documentation)

DeliveryClient

```
$auth = new AuthClient($clientId, $clientSecret);
$token = $auth->getToken();

// Initiate client
$client = new Delivery\Client($token->access_token);

// Create podcast entry on Spotify
try {
    $res = $client->create('Example Feed', 'https://example.podcaster.de/feed.rss');
    if ($res instanceof Delivery\Result) {
        // Do something with SpotifyUri
        $spotifyUri = $res->getSpotifyUri(); // Result e.g. spotify:show:123
    }
} catch (AuthException $e) {
} catch (DomainException $e) {
} catch (DuplicateException $e) {
}

// Get status and info for podcast entry on Spotify
try {
    $res = $client->status($spotifyUri);
    if ($res instanceof Result) {
        // A description of the current status of the podcast.
        $statusDescription = $res->getStatusDescription();
        // A list of descriptive validation errors for the podcast
        $validationErrors = $res->getValidationErrors();
    }
} catch (AuthException $e) {
} catch (DomainException $e) {
} catch (NotFoundException $e) {
}

// Update uri for podcast entry on Spotify
try {
    $newUrl = 'https://example.podcaster.de/newfeed.rss';
    $res = $client->status($spotifyUri, $newUrl);
    if (true === $res) {
      // Is updated
    }
} catch (AuthException $e) {
} catch (DomainException $e) {
} catch (NotFoundException $e) {
}

// Remove podcast entry
try {
    $res = $client->remove($spotifyUri);
    if (true === $res) {
      // Is removed
    }
} catch (AuthException $e) {
} catch (DomainException $e) {
} catch (NotFoundException $e) {
}
```

AnalyticsClient

```
$auth = new AuthClient($clientId, $clientSecret);
$token = $auth->getToken();
// Initiate client
$client = new Analytics\Client($token->access_token, $clientId);
// Fetch analytics data from Spotify
try {
    $res = $analyticsClient->get((new \DateTime())->setDate(\DateInterval::createfromdatestring('-1 day')));
    if ($res instanceof Analytics\Result) {
        // Iterate over JSON objects (from json_decode)
        foreach($res->getDecoded() as $jsonObject) {
        }
        // Iterate over raw JSON strings
        foreach($res->getRaw() as $sJson) {
        }
    }
} catch (AuthException $e) {
}
```

Testing
-------

[](#testing)

Not yet available. Sorry.

```
$ composer test
```

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

[](#contributing)

You´ll find the [source on Github](https://github.com/podcasthosting/podcast-client-spotify). Feel free to submit patches.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

49

—

FairBetter than 95% of packages

Maintenance82

Actively maintained with recent releases

Popularity22

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 97.2% 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 ~187 days

Recently: every ~533 days

Total

15

Last Release

89d ago

PHP version history (2 changes)v0.10.1-alphaPHP &gt;=7.1.0

v0.12.7-betaPHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/e46ceaecf02019e15394a97fff218f9c9593bbdb8637f840d7ab1ee0b4d2f836?d=identicon)[podcasthosting](/maintainers/podcasthosting)

---

Top Contributors

[![OpenHaus](https://avatars.githubusercontent.com/u/209948?v=4)](https://github.com/OpenHaus "OpenHaus (35 commits)")[![podcasthosting](https://avatars.githubusercontent.com/u/37177988?v=4)](https://github.com/podcasthosting "podcasthosting (1 commits)")

---

Tags

podcastpodcastingspotifyspotify-apiapifeedrsspodcastspotifypodcastingpodcaster

### Embed Badge

![Health badge](/badges/podcasthosting-podcast-client-spotify/health.svg)

```
[![Health](https://phpackages.com/badges/podcasthosting-podcast-client-spotify/health.svg)](https://phpackages.com/packages/podcasthosting-podcast-client-spotify)
```

###  Alternatives

[saloonphp/saloon

Build beautiful API integrations and SDKs with Saloon

2.4k9.6M468](/packages/saloonphp-saloon)[kreait/firebase-php

Firebase Admin SDK

2.4k39.7M72](/packages/kreait-firebase-php)[algolia/algoliasearch-client-php

API powering the features of Algolia.

69433.0M114](/packages/algolia-algoliasearch-client-php)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[getbrevo/brevo-php

Official Brevo provided RESTFul API V3 php library

963.1M35](/packages/getbrevo-brevo-php)[wordpress/php-ai-client

A provider agnostic PHP AI client SDK to communicate with any generative AI models of various capabilities using a uniform API.

26236.6k14](/packages/wordpress-php-ai-client)

PHPackages © 2026

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