PHP Classes
elePHPant
Icontem

x64 Feeds Generator: Generate cached XML feeds using templates

Recommend this page to a friend!
  Info   View files View files (10)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2006-03-25 (10 years ago) RSS 2.0 feedNot enough user ratingsTotal: 592 All time: 4,990 This week: 909Up
Version License PHP version Categories
x64feeds 1.1.1GNU General Publi...4.3XML, Cache, Templates
Description Author

This class can generate feeds in different formats by using templates. Some of the current supported feeds formats are: RSS 0.91, RSS 1.0, RSS 2.0 and Atom 0.3.
The feeds are generated by passing data that is commonly used by the different feeds, making easier to generate the feeds without having to change the code.
Also, the generated feeds can be cached in files.

Picture of Full name
Name: Full name <contact>
Classes: 3 packages by
Country: ???

Details
x64Feeds Generator 1.1.1
Raphael G. www.atomo64.tk atomo64@atomo64.tk

---Notes---
When using the caching feature, make sure that there's a directory called cache/, where the cached data is going to be stored. And make sure that PHP can create new files and write, since PHP usually is executed as 'nobody' CHMOD 0776 is needed.

Even when you give the data to the generator a database name must be given, because it is used when reading/saving from/to the cache.

The Atom 0.3 template is not completely valid, but it works with all the tested feeds readers.

---Usage---
To test the generator open the examples like this:

http://localhost/feeds/example1.php?FORMAT.xml

Where FORMAT is the format of the feeds(the file name of the template).
This is in 'path' mode. When 'query' mode is used, open like this:

http://localhost/feeds/example1.php?format=FORMAT

For more information open x64_feeds.php and read the comments.

---Hints---
You can use mod_rewrite to give a better 'look' to your feeds, but it requires to make some tricks to the class. An example of the .htaccess file could be:

RewriteEngine on
RewriteRule ^feeds/([^/\.]+)\.xml$ feeds.php?format=$1 [L]
  Files folder image Files  
File Role Description
Files folder imagetemplates (4 files)
Accessible without login Plain text file x64_feeds.php Class This is the main generator class
Accessible without login Plain text file readme.txt Doc. Some information about the class and important notes
Accessible without login Plain text file example1.php Example This is an example using file database
Accessible without login Plain text file example2.php Example This is an example giving the data as a file database
Accessible without login Plain text file example3.php Example This is an example giving the data as a processed array
Accessible without login Plain text file example_db.php Conf. This is the database used in the example number 1

  Files folder image Files  /  templates  
File Role Description
  Accessible without login Plain text file atom.tpl Conf. This is the template for the Atom0.3 feeds
  Accessible without login Plain text file rss091.tpl Conf. This is the template for the RSS 0.91 feeds
  Accessible without login Plain text file rss100.tpl Conf. This is the template for the RSS 100 feeds
  Accessible without login Plain text file rss200.tpl Conf. This is the template for the RSS 2.00 feeds

Downloadx64feeds-2006-03-25.zip 8KB
Downloadx64feeds-2006-03-25.tar.gz 5KB
Install with ComposerInstall with Composer
Needed packages  
Class DownloadWhy it is needed Dependency
x64Template Engine Download .zip .tar.gz It is used to parse the templates Required
 Version Control Unique User Downloads Download Rankings  
 0%
Total:592
This week:0
All time:4,990
This week:909Up