All Projects → dg → Rss Php

dg / Rss Php

Licence: bsd-3-clause
Small and easy-to-use library for consuming RSS and Atom feeds

Labels

Projects that are alternatives of or similar to Rss Php

Rsshub
🍰 Everything is RSSible
Stars: ✭ 18,111 (+4531.97%)
Mutual labels:  rss
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
Ios Weekly
🇨🇳 老司机 iOS 周报
Stars: ✭ 3,938 (+907.16%)
Mutual labels:  rss
Garss
Github Actions采集RSS, 打造无广告内容优质的头版头条超赞宝藏页
Stars: ✭ 285 (-27.11%)
Mutual labels:  rss
Elixir Scrape
Scrape any website, article or RSS/Atom Feed with ease!
Stars: ✭ 306 (-21.74%)
Mutual labels:  rss
Stringer
A self-hosted, anti-social RSS reader.
Stars: ✭ 3,362 (+759.85%)
Mutual labels:  rss
Hnrss
Custom, realtime RSS feeds for Hacker News
Stars: ✭ 277 (-29.16%)
Mutual labels:  rss
Rssguard
RSS Guard is simple feed reader which supports web-based feed services.
Stars: ✭ 373 (-4.6%)
Mutual labels:  rss
Morerssplz
Convert other article sources to RSS feeds
Stars: ✭ 315 (-19.44%)
Mutual labels:  rss
Reader
Free and open source feeds reader, including all major Google Reader features
Stars: ✭ 347 (-11.25%)
Mutual labels:  rss
Rss To Activitypub
An RSS to ActivityPub converter.
Stars: ✭ 293 (-25.06%)
Mutual labels:  rss
Newspipe
A web news aggregator.
Stars: ✭ 300 (-23.27%)
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
Rss Bridge
The RSS feed for websites missing it
Stars: ✭ 4,067 (+940.15%)
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
Yotter
Youtube and Twitter with privacy.
Stars: ✭ 376 (-3.84%)
Mutual labels:  rss
Podcastgenerator
Open Source Podcast Publishing Solution since 2006
Stars: ✭ 344 (-12.02%)
Mutual labels:  rss

RSS & Atom Feeds for PHP

Downloads this Month Latest Stable Version License

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?

Buy me a coffee

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].