A Laraval Package for use together with the wtfzdotnet/php-tmdb-api TMDB Wrapper.
Install Composer
$ curl -sS https://getcomposer.org/installer | php
$ sudo mv composer.phar /usr/local/bin/composer
Add the following to your require block in composer.json config
"wtfzdotnet/tmdb-package": "~0.1"
Add to your app/config/app.php
the service provider:
// Provider
'providers' => array(
'Wtfz\TmdbPackage\TmdbServiceProvider',
)
Then publish the configuration file:
php artisan config:publish wtfzdotnet/tmdb-package
And modify the configuration file located at app/config/packages/wtfz/tmdb/config.php
accordingly.
That's all! Fire away!
Obtaining the RAW data
$client = Tmdb::getMoviesApi()->load(13);
Obtaining modeled data
$movie = Tmdb::getMovieRepository()->load(13);
For all all other interactions take a look at wtfzdotnet/php-tmdb-api.