GithubHelp home page GithubHelp logo

slvler / tmdb Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 0.0 81 KB

TMDB.com api service for php

License: MIT License

PHP 100.00%
api api-rest api-service php php-package php7 qwerty tmdb tmdb-api tmdb-movie

tmdb's Introduction

Slvler - TMDB service

tests Latest Stable Version Latest Unstable Version License

An api service for tmdb.com

Installation

To install this package tou can use composer:

    composer require slvler/tmdb

Usage

  • first step is to start client client with required url, version, api key
    $option = [
            'base_url' => "https://api.themoviedb.org/3/",
            'api_key' => "xxxx",
            'version' => '3'
        ];

     $client = new Client($option);
  • You need to make a request to the tmdb service with the service point we created.
     $TMDB = new Tmdb($client);
  • Then you can send a request like this to bring the information of the movie we want.
    $TMDB->movie("550");
  • You can it to fetch player information.
    $TMDB->people("13");
  • to search on the specified keyword
    $TMDB->keyword("550");
  • to search in the specified condition
    $TMDB->network("550");
  • You can it to search in specified situations.
    $TMDB->review("58aa82f09251416f92006a3a");
  • You want this service when you want a TV program.
    $TMDB->tv("111");
  • movies with collection
    $TMDB->collection("10");

Testing

vendor\bin\phpunit

Credits

License

The MIT License (MIT). Please see License File for more information.

tmdb's People

Contributors

slvler avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.