amSimplePiePlugin - 1.0.1

The purpose of this plugin is to facilitate the use of SimplePie whithin a Symfony project.

« Back to the Plugins Home

Signin


Forgot your password?
Create an account

Tools

Stats

Module plugins

Some of the plugins offer one-click modules to easily add complete features to your symfony applications

advanced search
Plugin Information License Installation Readme All Releases Changelog Contribute
amSimplePiePlugin 1.0.1stable for sf 1.2sf 1.1sf 1.0 MIT

Description

The purpose of this plugin is to facilitate the use of SimplePie whithin a Symfony project:

  • it allows you to autoload the SimplePie class

  • it uses the Symfony cache directory

Categories

Leads

Name Email
gravatar Fabrice Bernhard moc.hctamolla <<ta>> becirbaf
gravatar Laurent Bachelier moc.hctamolla <<ta>> btnerual

amSimplePiePlugin

The purpose of this plugin is to facilitate the use of SimplePie whithin a Symfony project: - it allows you to autoload the SimplePie class - it uses the Symfony cache directory

Installation

  • Install the plugin

    symfony plugin:install amSimplePiePlugin

  • Clear you cache

    symfony cc

Using the plugin

new amSimplePie() has the same behavior as new SimplePie(), without the $cache_location parameter.

$am_sp = new amSimplePie(); $sp = $am_sp->getSP(); // SimplePie object ready for use $sp->set_feed_url('http://slashdot.org'/); $sp->set_cache_duration(3600); $sp->init(); $sp->handle_content_type(); foreach ($sp->get_items()) ...

OR

$amsp = new amSimplePie('http://slashdot.org/', 3600); $sp = $amsp->getSP(); foreach ($sp->get_items()) ...

NOTE: SimplePie 1.1.1 does not work well when the E_STRICT error reporting level is activated.

Copyright http://www.allomatch.com/