digipig/moviedb

A Laravel package to access the OMDb API in your Laravel application.

dev-master 2016-04-09 06:35 UTC

This package is not auto-updated.

Last update: 2024-11-23 19:32:12 UTC


README

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');