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(6mo ago)94442MITPHPPHP &gt;=8.1

Since Dec 16Pushed 6mo 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 today

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

46

—

FairBetter than 92% of packages

Maintenance69

Regular maintenance activity

Popularity23

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity68

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

181d 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

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k555.0M2.8k](/packages/aws-aws-sdk-php)[guzzlehttp/psr7

PSR-7 message implementation that also provides common utility methods

7.9k1.1B4.4k](/packages/guzzlehttp-psr7)[algolia/algoliasearch-client-php

API powering the features of Algolia.

69735.8M179](/packages/algolia-algoliasearch-client-php)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.8M672](/packages/shopware-core)[typo3/cms

TYPO3 CMS is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.

1.2k1.9M122](/packages/typo3-cms)

PHPackages © 2026

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