PHPackages                             moinax/tvdb - 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. moinax/tvdb

ActiveLibrary[API Development](/categories/api)

moinax/tvdb
===========

PHPTVDB is a PHP library for accessing TV show information such as episodes, actors, showtimes and descriptions.

v1.0.6(9y ago)63116.1k↓43.8%33[1 issues](https://github.com/Moinax/TvDb/issues)[2 PRs](https://github.com/Moinax/TvDb/pulls)2MITPHPPHP &gt;=5.3.3

Since Oct 25Pushed 5y ago6 watchersCompare

[ Source](https://github.com/Moinax/TvDb)[ Packagist](https://packagist.org/packages/moinax/tvdb)[ Docs](http://moinax.github.io/TvDb/)[ RSS](/packages/moinax-tvdb/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)DependenciesVersions (10)Used By (2)

TvDb
====

[](#tvdb)

**Deprecated** This library was implemented to work with the TVDB API V1.

It is now deprecated so I suggest you to find another library that implements the new API like

[![Join the chat at https://gitter.im/Moinax/TvDb](https://camo.githubusercontent.com/abe08b740a4156153736f791393ec4da6619c4be73212e75769f52edacc0e2b5/68747470733a2f2f6261646765732e6769747465722e696d2f4a6f696e253230436861742e737667)](https://gitter.im/Moinax/TvDb?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

Based on the well known php library phptvdb (available on ), this version has been completely refactored to offer more features from the tvdb api (available on [http://www.thetvdb.com/wiki/index.php/Programmers\_API](http://www.thetvdb.com/wiki/index.php/Programmers_API)) by using PHP 5.3 namespaces, very useful to import in a bigger project like Symfony 2 for example.

What does it do:
----------------

[](#what-does-it-do)

The Client implements almost all api functions from thetvdb excepted the download in ZIP format

Usage:
------

[](#usage)

```
use Moinax\TvDb\Client;
$apiKey = 'YOURAPIKEY';

$tvdb = new Client("http://thetvdb.com", $apiKey);
$tvdb->getSerie(75710);
```

Cache usage:
------------

[](#cache-usage)

To save bandwidth, reduce latency, or both of two, you can use a Http Client with caching features. The HTTP client use the If-Modified-Since header to fetch full content only if resource was modified. This saves bandwidth. The HTTP client also use a time to live parameter to completly avoid making request if resource was fresh enough. This reduce latency.

```
