littlegiant/silverstripe-youtubefeed
Composer 安装命令:
composer require littlegiant/silverstripe-youtubefeed
包简介
YouTubeFeed requests videos from an authenticated YouTube 'My Uploads' feed and converts them into YouTubeVideo DataObjects.
README 文档
README
Requests videos from an authenticated YouTube 'My Uploads' feed and converts them into YouTubeVideo DataObjects.
Features
- Configurable auto-update interval (disabled by default)
- CLI task YouTubeFeedTask
framework/sake YouTubeFeedTask flush=all - Stores video information into YouTubeVideo DataObject.
Installation
Installation via composer
$ composer require littlegiant/silverstripe-youtubefeed
You're then required to create an application at Google Developers Console.
- Click 'Create Project'
- Under "APIs & auth" > "APIs" enable "YouTube Data API"
- Under "APIs & auth" > "Credentials" click "Add credentials" (OAuth2 Client ID) then 'Configure consent screen' and enter your project name
- The 'Application Type' should be 'Web application' then for 'Authorized redirect URIs' enter
http://yoursitename.tld/youtube/authenticatethen "Create" - Enter your
Client IDandClient Secretinto Settings in the CMS
Options
Auto-update is disabled by default, and can be enabled within the CMS Settings "YouTube" tab.
Extending YouTube Feed
onAfterCreate(YouTubeVideo $videoObject)
Called after a YouTubeVideo DataObject is created as a result of being found in a playlist of the connected YouTube account.
public function onAfterCreate(YouTubeVideo $videoObject) { // Do something with the newly created $videoObject }
Contributing
Submit a pull request or issue and i'll try reply on the same working day.
Code guidelines
This project follows the standards defined in:
littlegiant/silverstripe-youtubefeed 适用场景与选型建议
littlegiant/silverstripe-youtubefeed 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.32k 次下载、GitHub Stars 达 12, 最近一次更新时间为 2015 年 09 月 01 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 littlegiant/silverstripe-youtubefeed 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 littlegiant/silverstripe-youtubefeed 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 1.32k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 12
- 点击次数: 19
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-09-01