dereuromark/cakephp-feed

A CakePHP plugin containing a RssView to generate RSS feeds.

Installs: 45 547

Dependents: 4

Suggesters: 0

Security: 0

Stars: 13

Watchers: 5

Forks: 5

Open Issues: 0

Type:cakephp-plugin

3.0.1 2024-03-29 22:24 UTC

This package is auto-updated.

Last update: 2024-12-16 19:20:29 UTC


README

CI Coverage Status Minimum PHP Version License Latest Stable Version Total Downloads Coding Standards

A CakePHP plugin containing a RssView class to generate RSS feeds.

Version notice

This branch is for use with CakePHP 5.0+. See version map for details.

What is this plugin for?

There used to be a core helper for RSS generation, but it had several deficiencies. It also was removed in 4.0. So this plugin aims to provide a better support for feed generation.

Goals of this view class

  • Support view-less actions via serialize.
  • Get rid of the ridiculously verbose "inline" namespace declarations.
  • Simplify the use of namespaces and their prefixes (auto-add only those that are actually used).
  • Support CDATA (unescaped content).
  • Allow mini-templating where necessary.

Additional features

  • Automatic View class mapping via rss extension.

See my article for details on the history of this view class.

Demo

https://sandbox.dereuromark.de/sandbox/feed-examples

Installation & Docs

Possible TODOs

  • Maybe add Feed readers instead of just writers.
  • Add AtomView ?