nextras/youtube-api

Youtube API library for Nette Framework.

v3.0.0 2016-09-28 09:00 UTC

README

Downloads this Month Stable version

Installation

Use composer:

$ composer require nextras/youtube-api

Usage

$reader = new Nextras\YoutubeApi\Reader('<your google-api key>')
$video = $reader->getVideoByUrl('<youtube url>');

echo $video->title;
echo $video->duration; // in sec
echo $video->description;
echo $video->url;
foreach ($video->thumbs as $thumb) {
    echo $video->url; 
}

License

MIT. See full license.