2017 © Pedro Peláez
 

library rss-writer

A simple yet powerful RSS2 feed writer with RSS extensions support (like iTunes podcast tags)

image

marcw/rss-writer

A simple yet powerful RSS2 feed writer with RSS extensions support (like iTunes podcast tags)

  • Saturday, April 1, 2017
  • by futurecat
  • Repository
  • 1 Watchers
  • 6 Stars
  • 948 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 11 Versions
  • 1 % Grown

The README.md

RssWriter

Build Status SensioLabsInsight Coverage Status, (*1)

A simple, yet powerful and fully customizable RSS 2.0 writing library, with a native support of iTunes podcasting tags and other RSS extensions., (*2)

Why a new Rss writing library?

At the time of writing this library, the current state of feed writing libraries was not satisfying. What I found was either difficult to extend, too generic, or wasn't taking advantage of best practices in order to reduce the Time To First Byte., (*3)

Why should I use this over other libraries?

Use this library if you want:, (*4)

  • RSS2 feeds (because there's no support for other types of feed).
  • Extensions for iTunes podcasting, Slash, Sy, DublinCreator, Atom, or just your own.
  • Best performance (memory and TTFB) thanks to XML Streaming.
  • Object oriented feed creation with POPO

How can I install it?

Run composer require marcw/rss-writer., (*5)

How does it work?

Feed creation

See this file., (*6)

Rss Streamed Response

See this file., (*7)

Symfony Bridge

HttpFoundation

The library provides an extension to the Symfony\Component\HttpFoundation\Response class for streaming rss responses to the client. See RssStreamedResponse.php. Use it from your controllers like this:, (*8)

use MarcW\RssWriter\Bridge\Symfony\HttpFoundation\RssStreamedResponse;

public function myAction()
{
    // $channel = ... (whatever you use to create your Channel object)

    return new RssStreamedResponse($channel, $this->get('marcw_rss_writer.rss_writer'));
}

Form

An iTunes category choice list is available to use in your forms. Follow this example:, (*9)

<?php

namespace AppBundle\Form;

use MarcW\RssWriter\Bridge\Symfony\Form\ChoiceList\Loader\ItunesCategoryChoiceLoader;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\Form\FormBuilderInterface;

class MyFormType extends AbstractType
{
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        // ...
        $builder->add('category', ChoiceType::class, ['choice_loader' => new ItunesCategoryChoiceLoader()])
        // ...
    }
}

Symfony Bundle

This library also provides a Symfony bundle., (*10)

Add this to your AppKernel.php file., (*11)

new MarcW\RssWriter\Bundle\MarcWRssWriterBundle()

You can now use the marcw_rss_writer.rss_writer service., (*12)

Can I contribute?

Sure! Feel free to report issues, send pull-requests, or ask for help., (*13)

Projects using this lib

  • Banditore retrieves new releases from your Github starred repositories and put them in a RSS feed.

LICENSE

See the LICENSE file., (*14)

The Versions

01/04 2017

dev-master

9999999-dev

A simple yet powerful RSS2 feed writer with RSS extensions support (like iTunes podcast tags)

  Sources   Download

MIT

The Requires

  • ext-xmlwriter *

 

The Development Requires

feed rss rss2 podcast podcasting

01/04 2017

0.4.0

0.4.0.0

A simple yet powerful RSS2 feed writer with RSS extensions support (like iTunes podcast tags)

  Sources   Download

MIT

The Requires

  • ext-xmlwriter *

 

The Development Requires

feed rss rss2 podcast podcasting

14/09 2016

0.3.3

0.3.3.0

A simple yet powerful RSS2 feed writer with RSS extensions support (like iTunes podcast tags)

  Sources   Download

MIT

The Requires

  • ext-xmlwriter *

 

The Development Requires

feed rss rss2 podcast podcasting

07/07 2016

0.3.2

0.3.2.0

A simple yet powerful RSS2 feed writer with RSS extensions support (like iTunes podcast tags)

  Sources   Download

MIT

The Requires

  • ext-xmlwriter *

 

The Development Requires

feed rss rss2 podcast podcasting

07/07 2016

0.3.1

0.3.1.0

A simple yet powerful RSS2 feed writer with RSS extensions support (like iTunes podcast tags)

  Sources   Download

MIT

The Requires

  • ext-xmlwriter *

 

The Development Requires

feed rss rss2 podcast podcasting

07/07 2016

0.3.0

0.3.0.0

A simple yet powerful RSS2 feed writer with RSS extensions support (like iTunes podcast tags)

  Sources   Download

MIT

The Requires

  • ext-xmlwriter *

 

The Development Requires

feed rss rss2 podcast podcasting

28/06 2016

0.2.2

0.2.2.0

A simple yet powerful RSS2 feed writer with RSS extensions support (like iTunes podcast tags)

  Sources   Download

MIT

The Requires

  • ext-xmlwriter *

 

The Development Requires

feed rss rss2 podcast podcasting

28/06 2016

0.2.1

0.2.1.0

A simple yet powerful RSS2 feed writer with RSS extensions support (like iTunes podcast tags)

  Sources   Download

MIT

The Requires

  • ext-xmlwriter *

 

The Development Requires

feed rss rss2 podcast podcasting

28/06 2016

dev-feat-bundle

dev-feat-bundle

A simple yet powerful RSS2 feed writer with RSS extensions support (like iTunes podcast tags)

  Sources   Download

MIT

The Requires

  • ext-xmlwriter *

 

The Development Requires

feed rss rss2 podcast podcasting

28/06 2016

0.2.0

0.2.0.0

A simple yet powerful RSS2 feed writer with RSS extensions support (like iTunes podcast tags)

  Sources   Download

MIT

The Requires

  • ext-xmlwriter *

 

The Development Requires

feed rss rss2 podcast podcasting

28/06 2016

0.1.0

0.1.0.0

A simple yet powerful RSS2 feed writer with RSS extensions support (like iTunes podcast tags)

  Sources   Download

MIT

The Requires

  • ext-xmlwriter *

 

The Development Requires

feed rss rss2 podcast podcasting