Component for easy handling and management of rss feed for podcasts.
PHP >= 7.4.
composer require diego-brocanelli/podcast-rss-reader dev-main
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.
composer tests
The command below will run PHPStan level 8 analysis.
composer analyse
The command below will run PHPStan level 8 analysis.
composer phpcs
composer all
<?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>
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 |
Responsible for returning the DiegoBrocanelli\Podcast\Image
object with its attributes.
Methods | Return |
---|---|
getTitle() | string |
getUrl() | string |
getLink() | string |
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 |
Responsible for returning the date for the last episode released, returning a DateTime object
.
Allows you to set a date to search for episodes. Bringing all records located from the date informed.