2017 © Pedro Peláez
 

library sonarr

PHP Sonarr API Wrapper

image

kryptonit3/sonarr

PHP Sonarr API Wrapper

  • Friday, June 30, 2017
  • by Kryptonit3
  • Repository
  • 1 Watchers
  • 4 Stars
  • 144 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 10 Versions
  • 6 % Grown

The README.md

Sonarr

PHP Wrapper for Sonarr https://sonarr.tv, (*1)

Here is the Sonarr API Documentation that this package implements: https://github.com/Sonarr/Sonarr/wiki/API, (*2)

Installation

composer require kryptonit3/sonarr

Example Usage

use Kryptonit3\Sonarr\Sonarr;

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

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

}, (*4)

### 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.
```php
$sonarr = new Sonarr('http://127.0.0.1:8989', 'cf7544f71b6c4efcbb84b49011fc965c', 'my-username', 'my-password');

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, (*5)

Note: when posting data with key => value pairs, keys are case-sensitive., (*6)

The Versions

30/06 2017

dev-master

9999999-dev

PHP Sonarr API Wrapper

  Sources   Download

MIT

The Requires

 

by Jesse Szypulski

30/06 2017

1.0.6.1

1.0.6.1

PHP Sonarr API Wrapper

  Sources   Download

MIT

The Requires

 

by Jesse Szypulski

27/04 2017

1.0.6

1.0.6.0

PHP Sonarr API Wrapper

  Sources   Download

MIT

The Requires

 

by Jesse Szypulski

26/04 2017

dev-Kryptonit3-patch-1

dev-Kryptonit3-patch-1

PHP Sonarr API Wrapper

  Sources   Download

MIT

The Requires

 

by Jesse Szypulski

07/02 2016

1.0.5

1.0.5.0

PHP Sonarr API Wrapper

  Sources   Download

MIT

The Requires

 

by Jesse Szypulski

06/02 2016

1.0.4

1.0.4.0

PHP Sonarr API Wrapper

  Sources   Download

MIT

The Requires

 

by Jesse Szypulski

06/02 2016

1.0.3

1.0.3.0

PHP Sonarr API Wrapper

  Sources   Download

MIT

The Requires

 

by Jesse Szypulski

06/02 2016

1.0.2

1.0.2.0

PHP Sonarr API Wrapper

  Sources   Download

MIT

The Requires

 

by Jesse Szypulski

06/02 2016

1.0.1

1.0.1.0

PHP Sonarr API Wrapper

  Sources   Download

MIT

The Requires

 

by Jesse Szypulski

06/02 2016

1.0.0

1.0.0.0

PHP Sonarr API Wrapper

  Sources   Download

MIT

The Requires

 

by Jesse Szypulski