GithubHelp home page GithubHelp logo

mb2o / codeigniter-tmdb-library Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chrisnharvey/codeigniter-tmdb-library

1.0 3.0 0.0 335 KB

A The Movie Database (TMDb) library

Home Page: http://www.b2tm.com/

codeigniter-tmdb-library's Introduction

This is the first library I have released which is a TMDb (The Movie Database) Library that I wrote that allows easy access to most of the methods in the TMDb API and returns the response in an array. It still needs a lot of work, but please let me know what you think and give me some feedback and suggestions.

Loading the library is simple and works in the usual way

$this->load->library('TMDb');

So now the library is loaded, you will want to make your first call. Usually you would call the TMDb API URL such as http://api.themoviedb.org/2.1/Movie.getInfo/en/json/APIKEY/187 but to call this same method using this library its as simple as.

$data = $this->tmdb->call('APIKEY', 'Movie.getInfo', '187');

You can then use this $data array to show any of the nodes that would usually appear in the TMDb response. For example, if you wanted to show the name of the movie, you would write

echo $data->name;

Thats a short example on how you can use this library, a more detailed documentation is coming soon.

Enjoy!

codeigniter-tmdb-library's People

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.