Automatically create RSS feeds

I have information stored in a database that I want to use to create RSS feeds.

What is the best way to do this?

Also, is there any PHP library / function with which I can pass data, and they will take care to allow any characters that need to be encoded / separated?

+4
source share
4 answers

PHP's universal feed generator is the one you are looking for.

It supports RSS 1.0, RSS 2.0, and ATOM.

+4
source

If you know how to dynamically create XML, it's about the same, you just need to look for a way to format RSS from you too.

After creating rss - you can check it here: http://validator.w3.org/feed/

Here is a short article on how it should be formatted: http://en.wikipedia.org/wiki/Rss

+2
source

I prefer the Zend_Feed component, which is part of the Zend Framework. Just check out Zend_Feed_Writer in the Reference Guide to learn how to export data as a feed.

+2
source

http://careers.stackoverflow.com/jobs/feed

Take a look at this RSS example (right-click on the source code). This is a functional and used RSS, and all you really need is to create your own page with dynamic data.

EDIT:

I personally see no reason to use the plugin for this. It is so similar to HTML that you can simply create it using the specified tags in the example above.

+1
source

Source: https://habr.com/ru/post/1402827/


All Articles