Skip to content
Provides a service to crawl feeds (rss, atom, etc.)
PHP
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
Controller
DependencyInjection
Resources
Tests/Controller
IgaRssBundle.php
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.