Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Simple PHP class for caching external feeds

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 FeedCache.php
Octocat-spinner-32 README.md
README.md

PHP FeedCache

How to use

Include FeedCache.php in your script

Then simply pass in the local file-name (that you want to save it as) and the remote feed:

  $feed_cache = new FeedCache('local_file.xml', 'http://example.com/feed.xml');
  $data = simplexml_load_string($feed_cache->get_data());

You will also need to make sure you have a writable folder called "cache" in the root of your site.

Changelog

  • v1 (2012-04-26) ** ADD: Initial commit

License

FeedCache is released under the MIT license. I make no guarantees about the reliability of this script. Use at your own risk.

Something went wrong with that request. Please try again.