ecxod/youtube 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ecxod/youtube

最新稳定版本:1.0.2

Composer 安装命令:

composer require ecxod/youtube

包简介

Langweilige Library des Ecxod Projekts

README 文档

README

Explanation of the workflow

  1. Channel request – Retrieves statistics, the channel’s creation date, and the ID of the “uploads” playlist that contains every video the channel has posted.
  2. 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.
  3. Batch statistics – Video view counts are fetched in batches of 50 IDs (the maximum allowed per videos.list call) 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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-11-01