TheRealJAG / Laravel-OMDb by TheRealJAG

A Laravel package to access the OMDb API in your Laravel application.
18
0
2
Package Data
Maintainer Username: TheRealJAG
Maintainer Contact: adnasium@gmail.com (Jorge A. Gonzalez)
Package Create Date: 2016-04-03
Package Last Update: 2016-04-09
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-11-17 03:02:24
Package Statistics
Total Downloads: 18
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 2
Total Forks: 2
Total Open Issues: 0

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