Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Provides a service to crawl feeds (rss, atom, etc.)

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 Controller
Octocat-spinner-32 DependencyInjection
Octocat-spinner-32 Resources
Octocat-spinner-32 Tests
Octocat-spinner-32 IgaRssBundle.php
Octocat-spinner-32 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.