dg / Rss Php
Licence: bsd-3-clause
Small and easy-to-use library for consuming RSS and Atom feeds
Stars: ✭ 391
Labels
Projects that are alternatives of or similar to Rss Php
Rssmonster
Google Reader inspired self-hosted RSS reader written in VueJS with an Express NodeJS backend. RSSMonster is compatible with the Fever API.
Stars: ✭ 321 (-17.9%)
Mutual labels: rss
Elixir Scrape
Scrape any website, article or RSS/Atom Feed with ease!
Stars: ✭ 306 (-21.74%)
Mutual labels: rss
Rssguard
RSS Guard is simple feed reader which supports web-based feed services.
Stars: ✭ 373 (-4.6%)
Mutual labels: rss
Reader
Free and open source feeds reader, including all major Google Reader features
Stars: ✭ 347 (-11.25%)
Mutual labels: rss
Api.rss
RSS as RESTful. This service allows you to transform RSS feed into an awesome API.
Stars: ✭ 340 (-13.04%)
Mutual labels: rss
Rssbud
RSSHub 的辅助 iOS App,和 RSSHub Radar 类似,他可以帮助你快速发现和订阅网站的 RSS。现已在 App Store 上架。
Stars: ✭ 283 (-27.62%)
Mutual labels: rss
Kindlebookmaker
Kindle Book Maker with KindleGen, Make Book from RSS/single URL/directory and so on.
Stars: ✭ 364 (-6.91%)
Mutual labels: rss
Workbase Server
Slack alternative, email integrated, build with Meteor
Stars: ✭ 284 (-27.37%)
Mutual labels: rss
Easy To Rss
🚀 Chrome/Firefox Extension to retreive RSS feeds URLs from WebSite, RSSHub supported
Stars: ✭ 386 (-1.28%)
Mutual labels: rss
Podcastgenerator
Open Source Podcast Publishing Solution since 2006
Stars: ✭ 344 (-12.02%)
Mutual labels: rss
RSS & Atom Feeds for PHP
RSS & Atom Feeds for PHP is a very small and easy-to-use library for consuming an RSS and Atom feeds.
It requires PHP 5.3 or newer with CURL extension or enabled allow_url_fopen and is licensed under the New BSD License. You can obtain the latest version from our GitHub repository or install it via Composer:
php composer.phar require dg/rss-php
Support Me
Do you like RSS? Are you looking forward to the new features?
Thank you!
Usage
Download RSS feed from URL:
$rss = Feed::loadRss($url);
The returned properties are SimpleXMLElement objects. Extracting the information from the channel is easy:
echo 'Title: ', $rss->title;
echo 'Description: ', $rss->description;
echo 'Link: ', $rss->url;
foreach ($rss->item as $item) {
echo 'Title: ', $item->title;
echo 'Link: ', $item->url;
echo 'Timestamp: ', $item->timestamp;
echo 'Description ', $item->description;
echo 'HTML encoded content: ', $item->{'content:encoded'};
}
Download Atom feed from URL:
$atom = Feed::loadAtom($url);
You can also enable caching:
Feed::$cacheDir = __DIR__ . '/tmp';
Feed::$cacheExpire = '5 hours';
You can setup a User-Agent if needed:
Feed::$userAgent = "FeedFetcher-Google; (+http://www.google.com/feedfetcher.html)";
If you like it, please make a donation now. Thank you!
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].