nextras / youtube-api
Youtube API library for Nette Framework.
Installs: 12 577
Dependents: 0
Suggesters: 0
Security: 0
Stars: 16
Watchers: 9
Forks: 5
Open Issues: 0
Requires
- php: >=7.1
- guzzlehttp/guzzle: ~6.2
- nette/http: ~2.2
- nette/utils: ~2.4
Requires (Dev)
- nette/tester: ~1.4
README
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; echo $video->embed; foreach ($video->thumbs as $thumb) { echo $video->url; }
License
MIT. See full license.