2017 © Pedro Peláez
 

library rss-pipes

image

urmaul/rss-pipes

  • Thursday, November 10, 2016
  • by urmaul
  • Repository
  • 2 Watchers
  • 5 Stars
  • 40 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 13 Versions
  • 0 % Grown

The README.md

Rss Pipes

Build Status, (*1)

Rss feeds manipulating tool inspired by Yahoo Pipes. It has no pipes editing interface - you just configure them in .yml files and copy their urls to your reader., (*2)

Usage

Simplest app

Just create index.php file with content like this., (*3)

<?php

require '../vendor/autoload.php';

$pipesDir = __DIR__ . '/../pipes';
\rsspipes\View::run($pipesDir);

Then you create a pipes dir that contains your pipe configs. For example you can create a config named urmaul.yml with content like this., (*4)

# urmaul.com without yii
---
-
  type: atom
  url: http://urmaul.com/atom.xml
-
  type: block
  rules:
    title: Yii

Opening index.php?pipe=urmaul you will see rss feed of urmaul.com blog without posts about Yii., (*5)

Available sections

Rss

Parses rss feed., (*6)

Atom

Parses atom feed., (*7)

Filter

Keep only items that fulfill the condition., (*8)

Block

Drop items that fulfill the condition., (*9)

Callback

Proces feed or items using callbacks., (*10)

Replace

Replaces substring inside attribute., (*11)

Parameters:, (*12)

  • attribute - attribute we want to replace substring in.
  • search - subtring we want to replace.
  • replace - subtring we want to replace with.

Sample:, (*13)

-
  type: replace
  attribute: title
  search: space
  replace: spaaace

Pipe

Runs separate pipe and adds it's result to feed., (*14)

The Versions