PHPackages                             luan220/sonarr - 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. luan220/sonarr

ActiveLibrary[API Development](/categories/api)

luan220/sonarr
==============

PHP Sonarr API Wrapper

09PHP

Since Jan 19Pushed 2y ago1 watchersCompare

[ Source](https://github.com/luan220/Sonarr)[ Packagist](https://packagist.org/packages/luan220/sonarr)[ RSS](/packages/luan220-sonarr/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Sonarr
======

[](#sonarr)

PHP Wrapper for Sonarr

Here is the Sonarr API Documentation that this package implements:

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

[](#installation)

```
composer require luan220/sonarr
```

Example Usage
-------------

[](#example-usage)

```
use luan220\Sonarr\Sonarr;
```

```
public function addSeries()
{
    $sonarr = new Sonarr('http://127.0.0.1:8989', 'cf7544f71b6c4efcbb84b49011fc965c'); // URL and API Key

    return $sonarr->postSeries([
        'tvdbId' => 73739,
        'title' => 'Lost',
        'qualityProfileId' => 3, // HD-720p
        'rootFolderPath' => '/volume1/Plex/Shows'
    ]);
}
```

### HTTP Auth

[](#http-auth)

If your site requires HTTP Auth username and password you may supply it like this. Please note, if you are using HTTP Auth without SSL you are sending your username and password unprotected across the internet.

```
$sonarr = new Sonarr('http://127.0.0.1:8989', 'cf7544f71b6c4efcbb84b49011fc965c', 'my-username', 'my-password');
```

### Output

[](#output)

```
{
  "title": "Lost",
  "alternateTitles": [

  ],
  "sortTitle": "lost",
  "seasonCount": 0,
  "totalEpisodeCount": 0,
  "episodeCount": 0,
  "episodeFileCount": 0,
  "sizeOnDisk": 0,
  "status": "continuing",
  "images": [

  ],
  "seasons": [

  ],
  "year": 0,
  "path": "\/volume1\/Plex\/Shows\/Lost",
  "profileId": 3,
  "seasonFolder": true,
  "monitored": true,
  "useSceneNumbering": false,
  "runtime": 0,
  "tvdbId": 73739,
  "tvRageId": 0,
  "tvMazeId": 0,
  "seriesType": "standard",
  "cleanTitle": "lost",
  "genres": [

  ],
  "tags": [

  ],
  "added": "2016-02-06T18:11:26.475637Z",
  "addOptions": {
    "searchForMissingEpisodes": false,
    "ignoreEpisodesWithFiles": true,
    "ignoreEpisodesWithoutFiles": true
  },
  "qualityProfileId": 3,
  "id": 90
}
```

For available methods reference included [Sonarr::class](src/Sonarr.php)

Note: when posting data with key =&gt; value pairs, keys are case-sensitive.

###  Health Score

14

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity20

Early-stage or recently created project

 Bus Factor1

Top contributor holds 50% 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/83ac4700d6eb9ace0928cab4159a8af7dfe906cbb864e776c6483420845d5aaa?d=identicon)[Nobula](/maintainers/Nobula)

---

Top Contributors

[![luan220](https://avatars.githubusercontent.com/u/360624?v=4)](https://github.com/luan220 "luan220 (7 commits)")[![Ne9ative](https://avatars.githubusercontent.com/u/360624?v=4)](https://github.com/Ne9ative "Ne9ative (7 commits)")

### Embed Badge

![Health badge](/badges/luan220-sonarr/health.svg)

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k13](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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