ecxod/youtube
最新稳定版本:1.0.2
Composer 安装命令:
composer require ecxod/youtube
包简介
Langweilige Library des Ecxod Projekts
README 文档
README
Explanation of the workflow
- Channel request – Retrieves statistics, the channel’s creation date, and the ID of the “uploads” playlist that contains every video the channel has posted.
- Playlist pagination – The uploads playlist is read in pages of up to 50 items (the API limit). Each video’s ID, title, and publish date are stored.
- Batch statistics – Video view counts are fetched in batches of 50 IDs (the maximum allowed per
videos.listcall) and merged back into the upload array.
The returned array looks like:
[
'subscribers' => 123456,
'creationDate' => '2007-04-23T07:00:00Z',
'totalViews' => 987654321,
'totalUploads' => 342,
'uploads' => [
[
'videoId' => 'a1b2c3d4e5',
'title' => 'First video',
'publishedAt' => '2007-05-01T12:34:56Z',
'viewCount' => 12345,
],
// …more videos
],
];
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-11-01