ruigomeseu / rss-feed-finder
Find and extract any RSS or ATOM feeds in a URL or domain
0.1.0
2016-09-15 16:00 UTC
Requires
- php: >=5.6.4
- paquettg/php-html-parser: ~1.7
- tightenco/collect: ~5.3
Requires (Dev)
- mockery/mockery: ~0.9
- phpunit/phpunit: ~5.5
This package is not auto-updated.
Last update: 2025-01-18 21:14:14 UTC
README
This package provides an easy way to extract RSS/Atom feeds from any URL.
use RuiGomes\RssFeedFinder\FeedFinder; $feedFinder = new FeedFinder('https://9to5mac.com'); $feeds = $feedFinder->find(); //$feeds will contain ["https://9to5mac.com/feed/", "https://9to5mac.com/comments/feed/"]
Install
You can pull in the package via composer:
composer require ruigomeseu/rss-feed-finder "~0.1"
Usage
Create a new FeedFinder instance and pass in the URL you'd like to extract feeds from:
$feedFinder = new FeedFinder('https://9to5mac.com');
You can now search that URL for feeds using:
$feeds = $feedFinder->find();
Changing the initial URL
You can change the initial URL by using:
$feedFinder->setUrl('http://www.nytimes.com');
The setUrl()
function allows for method chaining so you can do something like this:
$feeds = $feedFinder->setUrl('http://www.nytimes.com')->find();
Author
Rui Gomes
https://ruigomes.me
License
The MIT License (MIT). Please see LICENSE file for more information.