alanly / traktor
A Trakt.tv API client library in PHP, compatible with PSR-4 and Composer.
Installs: 25 107
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 1
Forks: 6
Open Issues: 0
Requires
- php: >=5.4
- guzzlehttp/guzzle: 4.1.*
Requires (Dev)
- mockery/mockery: 0.9.*
- phpunit/phpunit: 4.1.*
This package is not auto-updated.
Last update: 2025-02-11 04:30:09 UTC
README
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 = new Traktor\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 = new Traktor\Client; $traktor->setApiKey('foobar'); $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"