All Projects → Vinelab → RSS

Vinelab / RSS

Licence: MIT License
Simple RSS Client

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to RSS

Funnel
Funnel is a lightweight yara-based feed scraper
Stars: ✭ 38 (-20.83%)
Mutual labels:  rss
Feedly-Export-Save4Later
Working script for latest feedly design. Including title, url, summary, time, sourceTitle & sourceUrl
Stars: ✭ 23 (-52.08%)
Mutual labels:  rss
castget
A simple, command-line based RSS enclosure downloader, primarily intended for automatic, unattended downloading of podcasts.
Stars: ✭ 76 (+58.33%)
Mutual labels:  rss
RSSnotifier
Node RSS reader telegram bot. Provides notification on queries-matching elements and supports multiple users.
Stars: ✭ 15 (-68.75%)
Mutual labels:  rss
baRSS
Menu Bar RSS reader for macOS
Stars: ✭ 39 (-18.75%)
Mutual labels:  rss
html2rss-web
🕸 Generates and delivers RSS feeds via HTTP. Create your own feeds or get started quickly with the included configs.
Stars: ✭ 36 (-25%)
Mutual labels:  rss
rss2email
Convert RSS feeds to emails
Stars: ✭ 72 (+50%)
Mutual labels:  rss
YouTubeFeeds
Get new youtube video notifs, on telegram!
Stars: ✭ 29 (-39.58%)
Mutual labels:  rss
Spotify-Podcast-Feed
A service which provides Spotify podcast as RSS feed, which can be subscribed in any podcast app.
Stars: ✭ 16 (-66.67%)
Mutual labels:  rss
microblog
A very simple PHP app that stores twitter-like status updates in a sqlite database.
Stars: ✭ 30 (-37.5%)
Mutual labels:  rss
crawley
Crawley the Telegram Beholder
Stars: ✭ 24 (-50%)
Mutual labels:  rss
Mapnews
Today's News on a Map
Stars: ✭ 20 (-58.33%)
Mutual labels:  rss
fiet
Fiết is a RSS feed parser in Elixir, which focuses on extensibility, speed, and standard compliance
Stars: ✭ 23 (-52.08%)
Mutual labels:  rss
elfeed-score
Gnus-style scoring for elfeed
Stars: ✭ 33 (-31.25%)
Mutual labels:  rss
fast rss
Fast Elixir RSS feed parser, a NIF wrapper around the Rust RSS crate
Stars: ✭ 63 (+31.25%)
Mutual labels:  rss
bubo-rss
An irrationally minimalist, static RSS feed reader you can instantly deploy on Netlify, Glitch or your own server.
Stars: ✭ 41 (-14.58%)
Mutual labels:  rss
helloworld
federated social web blog and RSS reader
Stars: ✭ 22 (-54.17%)
Mutual labels:  rss
gitbook-plugin-rss
RSS for your gitbook
Stars: ✭ 19 (-60.42%)
Mutual labels:  rss
podpodge
Convert YouTube playlists to audio-only RSS feeds for podcast apps to consume.
Stars: ✭ 32 (-33.33%)
Mutual labels:  rss
feed-nim
A feed parsing module for Nim
Stars: ✭ 21 (-56.25%)
Mutual labels:  rss

Build Status

RSS Client

A simple and radical RSS client that supports RSS 0.92, 2.0 and Atom feeds.

Synopsis

Fetch Feeds

$rss->feed('https://stackoverflow.com/feeds/tag?tagnames=php&sort=newest');

Parse Feeds

$feed->info();
$feed->articles();

Installation

composer require vinelab/rss

Laravel Setup

Edit app.php and add 'Vinelab\Rss\RssServiceProvider', to the 'providers' array.

It will automatically alias itself as RSS so no need to aslias it in your app.php unless you would like to customize it. In that case edit your 'aliases' in app.php adding 'MyRSS' => 'Vinelab\Rss\Facades\RSS',

Usage

Fetch an RSS feed

require 'vendor/autoload.php';

use Vinelab\Rss\Rss;

$rss = new Rss();
$feed = $rss->feed('https://stackoverflow.com/feeds/tag?tagnames=php&sort=newest');

// $feed is now an instance of Vinelab\Rss\Feed

$info = $feed->info();
$count = $feed->articlesCount();
$articles = $feed->articles();

Feed Info

$info = $feed->info();

echo json_encode($info);
{
   "title": "Newest questions tagged php - Stack Overflow",
   "subtitle": "most recent 30 from stackoverflow.com",
   "updated": "2020-07-16T19:14:29Z",
   "id": "https://stackoverflow.com/feeds/tag?tagnames=php&sort=newest"
 }

Feed Articles

Accessing Articles

$articles = $feed->articles();

This will give you an instance of Vinelab\Rss\ArticlesCollection which is an extension of Illuminate\Support\Collection. Each item of this collection is an instance of Vinelab\Rss\Article from which you can safely access any of the properties in the entry.

Article

Is an object which properties are dynamically accessed such as $article->title.

Whichever fields exist in the feed's entry will be accessible as read-only property, making Article an immutable object.

You may also call isset($article->someField) to check whether the field exists for a designated entry.

$article = $articles->first();

echo $article->title; // ABBA piano seen raising money, money, money at auction

echo $article->whatever; // null

Or iterate through the articles

foreach ($feed->articles() as $article) {
  $title = $article->title;
}

You may also access the article's original XML format with

$article->xml();

Got Questions?

Reach out in the issues.


MIT LICENSE

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