2017 © Pedro Peláez
 

library tvrage

API Client for tvrage.com

image

adrenth/tvrage

API Client for tvrage.com

  • Saturday, September 12, 2015
  • by adrenth
  • Repository
  • 2 Watchers
  • 0 Stars
  • 41 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

adrenth/tvrage

Build Status Latest Stable Version Total Downloads Latest Unstable Version License SensioLabsInsight HHVM Status, (*1)

This is an API client for the tvrage.com website. It's using the XML feeds that are publicly available. For more info visit http://services.tvrage.com/info.php?page=main., (*2)

Installation

Install this package using Composer:, (*3)

composer require adrenth/tvrage

Caching

Since the tvrage.com XML feeds are usually very slow I advise you to use caching. This package requires a Doctrine Cache instance., (*4)

To disable caching just provide a VoidCache or ArrayCache instance., (*5)

For more information about Doctrine Cache visit https://github.com/doctrine/cache, (*6)

Usage

<?php

require '../vendor/autoload.php';

$cache = new \Doctrine\Common\Cache\FilesystemCache('path/to/temp');
$client = new Adrenth\Tvrage\Client($cache);

// Search TV-serie Top Gear
$response = $client->search('top gear'); // ShowsResponse

// Perform a full search on Ray Donovan
$response = $client->fullSearch('ray donovan');  // ShowsResponse

// Get (full) show info by passing the tvrageid (Buffy the Vampire Slayer)
$response = $client->showInfo(2930); // ShowResponse
$response = $client->fullShowInfo(2930); // ShowResponse

// Get Episode list of Buffy the Vampire Slayer
$response = $client->episodeList(2930); // SeasonsResponse

// Get Episode infor of Buffy the Vampire Slayer (season 2, episode 4)
$response = $client->episodeInfo(2930, 2, 4); // EpisodeResponse

  • SeasonsResponse; contains 0 or more Season instances (episodeList)
  • EpisodeResponse; contains 0 or 1 Episode instance (episodeInfo)
  • ShowResponse; contains 0 or 1 Show instance (showInfo)
  • ShowsResponse; contains 0 or more Show instances (search, fullSearch)

Contributing

Please contribute to make this package even better., (*7)

The Versions

12/09 2015

dev-master

9999999-dev http://github.com/adrenth/tvrage

API Client for tvrage.com

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alwin Drenth

api library tvrage tvrage.com

12/09 2015

0.1.2

0.1.2.0 http://github.com/adrenth/tvrage

API Client for tvrage.com

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alwin Drenth

api library tvrage tvrage.com

12/09 2015

dev-develop

dev-develop http://github.com/adrenth/tvrage

API Client for tvrage.com

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alwin Drenth

api library tvrage tvrage.com

29/08 2015

0.1.1

0.1.1.0 http://github.com/adrenth/tvrage

API Client for tvrage.com

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alwin Drenth

api library tvrage tvrage.com

29/08 2015

0.1

0.1.0.0 http://github.com/adrenth/tvrage

API Client for tvrage.com

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alwin Drenth

api library tvrage tvrage.com