定制 mhrlab/youtube-rss 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

mhrlab/youtube-rss

Composer 安装命令:

composer require mhrlab/youtube-rss

包简介

Small and easy-to-use library for consuming YouTube feeds

README 文档

README

mhrlab - youtube-rss stars - youtube-rss forks - youtube-rss

GitHub release License issues - youtube-rss

Small and easy-to-use library for consuming YouTube feeds

Installation

To install YouTube-Rss, simply:

composer require mhrlab/youtube-rss

For latest commit version:

composer require mhrlab/youtube-rss:dev-master

Requirements

YouTube-Rss works with PHP 7.0, 7.1, 7.2, 7.3, 7.4, and 8.0.

Quick Start and Examples

More examples are available under /examples.

require 'vendor/autoload.php';

$rss = new Feed('https://www.youtube.com/feeds/videos.xml?channel_id=CHANNEL_ID');

if ($rss->error){
  /* print error message  */
  echo $rss->errorMessage;
}else{
  $array = $rss->toArray();

  /*pass true to print json with header('content-type:application/json')*/
  $rss->toJSON(true);
}
require 'vendor/autoload.php';

$rss = new Feed();

/*set time_zone to receive all time&date in own timezone. */
$rss->time_zone = 'asia/kolkata';

$rss->loadRss('https://www.youtube.com/feeds/videos.xml?channel_id=CHANNEL_ID');

if ($rss->error){
  /* print error message  */
  echo $rss->errorMessage;

}else{
  $array = $rss->toArray();
  /*pass true to print json with header('content-type:application/json')*/
  $rss->toJSON(true);
}

Contribute

  1. Check for open issues or open a new issue to start a discussion around a bug or feature.
  2. Fork the repository on GitHub to start making your changes.
  3. Write one or more tests for the new feature or that expose the bug.
  4. Make code changes to implement the feature or fix the bug.
  5. Send a pull request to get your changes merged and published.

统计信息

  • 总下载量: 25
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-10-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固