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

v0.1.0 2014-06-26 23:53 UTC


Build Status - Master

Traktor is a simple PHP client for the 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 = new Traktor\Client;
$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 = new Traktor\Client;
$summary = $traktor->get('show.episode.summary', ['silicon-valley', 1, 3]);
echo $summary->show->title;
// "Silicon Valley"
echo $summary->episode->season;
// 1
echo $summary->episode->number;
// 3
echo $summary->episode->title;
// "Articles of Incorporation"