2017 © Pedro Peláez
 

library merge-rss

merge rss feeds

image

uniphil/merge-rss

merge rss feeds

  • Monday, November 14, 2016
  • by uniphil
  • Repository
  • 1 Watchers
  • 1 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

⚠️ Unmaintained ⚠️

I originally wrote this up for a client on Upwork, who disappeared and never paid. So I published it at some point, but it's really not something I have bandwidth for maintaining., (*1)

I do not use it, and no future changes or updates are planned. I'm archiving it, but leaving it up in case it saves someone else a couple hours of work. Read the source and don't expect the most robust code in the world :), (*2)

merge-rss-php

Requirements

  • php with SimpleXML enabled

Installation

$ composer require uniphil/merge-rss

Usage

$feed1 = simplexml_load_string(
    '
    
      
        
          An older post from one feed
          2016-01-01
        
      
    ');

$feed2 = simplexml_load_string(
    '
    
      
        
          A recent post from another
          2016-11-12
        
      
    ');

$merged = MergeRSS\merge_rss(array($feed1, $feed2));
echo $merged->asXML();
```

should output an xml document that looks like this:

```xml

<rss version="2.0">
  <channel>
    <item>
      <title>A recent post from another</title>
      <pubDate>2016-11-12</pubDate>
    </item>
    <item>
      <title>An older post from one feed</title>
      <pubDate>2016-01-01</pubDate>
    </item>
  </channel>
</rss>

The Versions

14/11 2016

dev-master

9999999-dev

merge rss feeds

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar phil

14/11 2016

v0.1.0

0.1.0.0

merge rss feeds

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar phil