dev-master
9999999-devA Laravel package to access the OMDb API in your Laravel application.
MIT
The Requires
by Jorge A. Gonzalez
laravel api movies omdb
A Laravel package to access the OMDb API in your Laravel application.
Laravel package to access the OMDb API in your application., (*1)
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., (*2)
OMDb API Homepage: http://www.omdbapi.com/, (*3)
Add this to your composer.json
under psr-4
:, (*4)
"DigiPig\\MovieDB\\": "packages/digipig/moviedb/src/"
Add this to your app.php
config file in providers:, (*5)
DigiPig\MovieDB\MovieDBServiceProvider::class
Add this to your app.php
config file in aliases:, (*6)
'MovieDB' => DigiPig\MovieDB\MovieDBFacade::class
Run the following composer command, (*7)
composer dumpautoload
Run the following artisan command. This will publish the package views into your app so you can customize the views., (*8)
artisan vendor:publish
Visit http://YOURDOMAIN.com/moviedb/tt2937696
in your web browser to see it in action, (*9)
To access the package in your application use:, (*10)
use DigiPig\MovieDB;
$MoviesArray = \MovieDB::getMovie('tt2937696');
A Laravel package to access the OMDb API in your Laravel application.
MIT
laravel api movies omdb