Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Provides a service to crawl feeds (rss, atom, etc.)
PHP
branch: master

Merge pull request #4 from stephpy/master

Service as prototype
latest commit e333cc58cf
@zeopix authored
Failed to load latest commit information.
Controller rss_php service
DependencyInjection rss_php service
Resources Rss class as prototype
Tests/Controller rss_php service
IgaRssBundle.php rss_php service
README.md Update README.md

README.md

Introduction

This Bundle enables integration of the RSS-PHP library into your symfony2 project. RSS_PHP: http://rssphp.net/

Installation

Downlad rssphp and to your vendor/ dir and configure the app, just have to set up your config with the path to the 'rss.php' file.

Example in your config.yml:

        iga_rss:
            file: %kernel.root_dir%/../vendor/rssphp/rss.php

Usage

Now, you have a service called "iga_rss.rss" that loads the rss_php class. Code sample in a controller:

        $rss = $this->get('iga_rss.rss');
        $rss->load('http://www.elpais.com/rss/feed.html?feedId=1022');
        $items = $rss->getItems();
Something went wrong with that request. Please try again.