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:
Enjoy.
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.