flrnull / youtube-api
PHP Youtube Data API v3
dev-master
2013-11-03 22:27 UTC
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2025-03-25 03:40:15 UTC
README
PHP Youtube API
Usage
$apiKey = ''; $categoryId = 1; $period = '-10 days'; $limit = 30; $page = 'JqwdgHdq'; // Here you can specify pageToken from previous API result $apiSearch = new YoutubeApi\Search($apiKey); $videosData = $apiSearch->videos() ->category($categoryId) ->order('viewCount') ->fromDate($period) ->limit($limit) ->page($page) ->getList();
Install
composer.json
"require": {
"flrnull/youtube-api": "dev-master",
}
License
MIT