Giter Site home page Giter Site logo

php--tvrage's Introduction

Welcome to PHP::TVRage

a PHP library for accessing tv show info from tvrage.com

Example:

<?php
     include('TVRage.php');

     $show = TV_Shows::findById('2930');
     print_r($show);
     $episode = $show->getEpisode(1,2);
     print_r($episode);
?>

Gives you:

TV_Show Object
(
    [showId] => 2930
    [name] => Buffy the Vampire Slayer
    [showLink] => http://tvrage.com/Buffy_The_Vampire_Slayer
    [country] => US
    [started] => 861519504
    [ended] => 1053414000
    [seasons] => 7
    [status] => Canceled/Ended
    [classification] => Scripted
    [network] => UPN
    [runtime] => 60
    [genres] => Array
        (
            [0] => Action
            [1] => Adventure
            [2] => Comedy
            [3] => Drama
            [4] => Mystery
            [5] => Sci-Fi
        )
        
    [airDay] => Tuesday
    [airTime] => 20:00
    [twelveHourAirTime] => 8:00 pm
)
TV_Episode Object
(
    [season] => 1
    [number] => 2
    [title] => The Harvest (2)
    [airDate] => 857980800
    [formattedAirDate] => Mon, March 10, 1997
    [url] => http://www.tvrage.com/Buffy_The_Vampire_Slayer/episodes/28078
)

You can also search for TV shows:

<?php
     $shows = TV_Shows::search("90210");
     //returns an array of TV_Show objects with 90210 in their title
?>

php--tvrage's People

Contributors

kkirsche avatar ryandoherty avatar paultreny avatar

Watchers

 avatar James Cloos 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.