PHP code example of ruigomeseu / rss-feed-finder

1. Go to this page and download the library: Download ruigomeseu/rss-feed-finder library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

ruigomeseu / rss-feed-finder example snippets


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/"]

$feedFinder = new FeedFinder('https://9to5mac.com');

$feedFinder->setUrl('http://www.nytimes.com');

$feeds = $feedFinder->setUrl('http://www.nytimes.com')->find();