PHP code example of webignition / website-rss-feed-finder
1. Go to this page and download the library: Download webignition/website-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/ */
webignition / website-rss-feed-finder example snippets
$finder = new webignition\WebsiteRssFeedFinder\WebsiteRssFeedFinder();
$finder->setRootUrl('http://codinghorror.com/blog/');
$this->assertEquals('http://feeds.feedburner.com/codinghorror/', $finder->getRssFeedUrl());
$finder->setRootUrl('http://www.geekyportal.com/');
$this->assertEquals('http://www.geekyportal.com/feeds/posts/default', $finder->getAtomFeedUrl());
);