定制 diego-brocanelli/podcast-rss-reader 二次开发

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

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

diego-brocanelli/podcast-rss-reader

Composer 安装命令:

composer require diego-brocanelli/podcast-rss-reader

包简介

component for easy handling and management of rss feed for podcasts.

README 文档

README

Component for easy handling and management of rss feed for podcasts.

How to use

Requirements

PHP >= 7.4.

Instalation

composer require diego-brocanelli/podcast-rss-reader dev-main

How to contribute

Open an issue exposing your point to be analyzed, including detailing the point.

To contribute to the project, create a fork and send your pull request.

Tests

composer tests

Code Analysis

The command below will run PHPStan level 8 analysis.

composer analyse

PHP Code Sniffer

The command below will run PHPStan level 8 analysis.

composer phpcs

Test, Code Analysis and PHP Code Sniffer

composer all

Example

<?php

require_once __DIR__.'/vendor/autoload.php';

use DiegoBrocanelli\Podcast\Podcast;
use DiegoBrocanelli\Podcast\Reader;

$feed = 'https://devnaestrada.com.br/feed.xml';

$podcast = new Podcast( new Reader($feed) );

$podcast->getEpisodes(); //Return: array<Episodes>

Methods

info(): array

Responsible for returning the base data of the rss feed, with the exception of episodes.

Attribute Type
title string
link string
description string
lastBuildDate DateTime
pubDate DateTime
language string

getImageInfo()

Responsible for returning the DiegoBrocanelli\Podcast\Image object with its attributes.

Methods Return
getTitle() string
getUrl() string
getLink() string

getEpisodes()

Responsible for returning a list of DiegoBrocanelli\Podcast\Episode objects with their attributes.

Methods Return
getTitle() string
getLink() string
getPubDate() DateTime
getGuid() string
getComments() string
getCategory() string
getDescription() string
getAudio() string

lastBuildDate()

Responsible for returning the date for the last episode released, returning a DateTime object.

biggerThen(DateTime $date): array

Allows you to set a date to search for episodes. Bringing all records located from the date informed.

Author

License

MIT

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-11-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固