Skip to content
WJunction - Webmaster Forum

YouTube Feed Parser [Free]

Status
Not open for further replies.

JmZ

(╯°□°)╯︵ ┻━┻
1,789
2008
729
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.

About the author

J
(╯°□°)╯︵ ┻━┻ · Joined
1,789
Messages
729
Reactions
113
Points
Grow your business

Advertise on WJunction

Connect with an established international community of webmasters, hosting providers, developers and online entrepreneurs.

  • Premium & Premium+ Sticky
  • Dedicated section banners
  • Site-wide banner advertising
Explore advertising options
Back
Top Bottom