Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

Faridbabayev001/OMDB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

OMDB (The Open Movie Database) library for codeigniter

The OMDb API is a RESTful web service to obtain movie information, all content and images on the site are contributed and maintained by our users.

Please check OMDB documentation for create api key.

Requirements

  • CodeIgniter 3.0+
  • PHP 5.6+
  • cURL
  • OMDB API-key

Installation

Download and unpack the contents of the application/libraries and application/config folder to your CodeIgniter project.

Config file

Move omdb.php to application/config folder

<?php

$config['omdbapi'] = 'YOUR API'; // Enter your api key.

Controller example

Initialize the class

<?php
	class Omdb_test extends CI_Controller {

		public function __construct() {
			parent::__construct();
			$this->load->library('omdb');
		}

		public function index() {
			$params = array(
            			's' => 'Batman'
            			);
        		return $this->omdb->getMovie($params);
		}
	}

About

OMDB (The Open Movie Database) library for codeigniter

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages