Yii 1.1: eimdbquery

A wrapper for IMDB API on http://www.imdbapi.com

A wrapper for IMDB API on http://www.imdbapi.com.


  • Yii 1.1.
  • CURL or fopen enabled in server.


  • Download the extension and extract it to your extension directory.
  • Just follow the following example:
    // Load the extension
    // Create the object
    $movie = new EImdbQuery($model->Title, EImdbQuery::TYPE_TITLE);
    // Get data as a property, or
    // Get data as a method
        // Alternatively, to do a search.
    $movie = new EImdbQuery($model->Title, EImdbQuery::TYPE_TITLE, false); // set last parameter to false, which defines to do a less strict search
    $movie->Greedy = true; // set to true to get all complete results for each movie
    // Get results
        // Get data as a method
    // Get data as a property

Available Data

  • Title
  • Year
  • Rated
  • Released
  • Runtime
  • Genre
  • Director
  • Writer
  • Actors
  • Plot
  • Poster
  • imdbRating
  • imdbVotes
  • imdbID
  • Response


Any bugs or suggestions could be delivered to me through bS.xx7_37@yahoo.com.

Be the first person to leave a comment

Please to leave your comment.

Create extension