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

Since Dec 16Pushed 4mo 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 3w 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

48

—

FairBetter than 93% of packages

Maintenance75

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

135d 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.3k543.5M2.6k](/packages/aws-aws-sdk-php)[guzzlehttp/psr7

PSR-7 message implementation that also provides common utility methods

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

API powering the features of Algolia.

69735.1M159](/packages/algolia-algoliasearch-client-php)[mollie/mollie-api-php

Mollie API client library for PHP. Mollie is a European Payment Service provider and offers international payment methods such as Mastercard, VISA, American Express and PayPal, and local payment methods such as iDEAL, Bancontact, SOFORT Banking, SEPA direct debit, Belfius Direct Net, KBC Payment Button and various gift cards such as Podiumcadeaukaart and fashioncheque.

60216.0M85](/packages/mollie-mollie-api-php)[shopware/platform

The Shopware e-commerce core

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

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)

PHPackages © 2026

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