digipig/moviedb

A Laravel package to access the OMDb API in your Laravel application.
18
Install
composer require digipig/moviedb
License:MIT
Last Updated:Apr 9, 2016
Links: GitHub  ·  Packagist
Maintainer: TheRealJAG

Laravel OMDb API Package

Introduction

Laravel package to access the OMDb API in your application.

What is the OMDb API?

The OMDb API is a free web service to obtain movie information. OMDb API's data is a mashup of other movie sites such as IMBD, Rotten Tomatoes and OMDb contributers.

OMDb API Homepage: http://www.omdbapi.com/

Installation

Add this to your composer.json under psr-4:

"DigiPig\\MovieDB\\": "packages/digipig/moviedb/src/"

Add this to your app.php config file in providers:

DigiPig\MovieDB\MovieDBServiceProvider::class

Add this to your app.php config file in aliases:

'MovieDB' => DigiPig\MovieDB\MovieDBFacade::class

Run the following composer command

composer dumpautoload

Run the following artisan command. This will publish the package views into your app so you can customize the views.

artisan vendor:publish

Use

Visit http://YOURDOMAIN.com/moviedb/tt2937696 in your web browser to see it in action

To access the package in your application use:

use DigiPig\MovieDB;
$MoviesArray = \MovieDB::getMovie('tt2937696');

Related Packages

bhutanio/movietvdb

Movie and TV Database API, Scrapes data from themoviedb.org (tmdb), thetvdb.com...

755 16
php-tmdb/laravel

Laravel Package for TMDB ( The Movie Database ) API. Provides easy access to the...

53,305 162
cyvelnet/laravel5-fractal

A simple fractal service provider and transformer generator with model attribute...

189,204 79
kavenegar/laravel

laravel 4 and 5 kavenegar integration

352,380 85