Status
Not open for further replies.

JmZ

(╯°□°)╯︵ ┻━┻
1,789
2008
729
0
Here you go:
https://github.com/jmzrlz/Utils/blob/master/youtube.class.php

Simple class to search the youtube gdata feed with a changeable result count.

Use like so:
PHP:
$test = new YouTube('some keywords here');
/*
    $test is now an iterable of results
*/
foreach($test as $video)
{
    /*
        $video is now an instance of YouTubeVideo
        It has the properties (id, title, published, category, description, link, author)
    */
    echo $video->title . "\n";
}

Enjoy.
 
1 comment
Status
Not open for further replies.
Back
Top