Download the PHP package itsdizzy/trakt-api without Composer
On this page you can find all versions of the php package itsdizzy/trakt-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download itsdizzy/trakt-api
More information about itsdizzy/trakt-api
Files in itsdizzy/trakt-api
Package trakt-api
Short Description A simple library for the Trakt.tv API v2
License GPL-3.0
Homepage https://github.com/ItsDizzy/trakt-api-laravel
Informations about the package trakt-api
Trakt API for Laravel 5
This is a library to use the Trakt API in Laravel 5
Setup
To install this library you need to use composer, you can get it from here.
When you have that installed which you probably already have since you already made a laravel project, you can run the following command:
Like any laravel library you have to tell laravel how it has to use it.
To do this you have to add the service provider to the providers
array in config/app.php
You also have to add a facade to the aliases
array in config/app.php
Now laravel knows which bindings it has to create and which config files it has to load,
and it made a nice little alias so you can just use the Trakt
facade in your code.
Trakt also requires at least a api key, you can get one by creating a new application here.
Now open your .env
file and add set the TRAKT_CLIENT_ID
with your client id
Now you are all set to use the api.
Usage
A better explanation will come soon.
All versions of trakt-api with dependencies
illuminate/support Version ~5.2
nesbot/carbon Version ~1
guzzlehttp/guzzle Version ~5
league/flysystem Version ^1.0