Skip to content

Repository files navigation

Traktor

Build Status - Master

Traktor is a simple PHP client for the Trakt.tv API service, that allows you to cleanly integrate the data available on Trakt into your application.

Currently, it supports only non-developer and GET-based API methods. It makes use of the GuzzleHttp library and requires the use of PHP 5.4 or above.

It aims to be fairly basic and simple to use:

$traktor = newTraktor\Client;
$traktor->setApiKey('foobar');
$summary = $traktor->get('movie.summary', ['the-social-network-2010']);
echo$summary->imdb_id;
// "tt1285016"echo$summary->tagline;
// "You don't get to 500 million friends without making a few enemies"
$traktor = newTraktor\Client;
$traktor->setApiKey('foobar');
$summary = $traktor->get('show.episode.summary', ['silicon-valley', 1, 3]);
echo$summary->show->title;
// "Silicon Valley"echo$summary->episode->season;
// 1echo$summary->episode->number;
// 3echo$summary->episode->title;
// "Articles of Incorporation"

About

A Trakt.tv API client library in PHP, compatible with PSR-4 and Composer.

Resources

Stars

0 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages