Git Product home page Git Product logo

l4-feed-reader's Introduction

Laravel 4.2 - Feed Reader

A simple RSS feed reader for Laravel 4.2

Features

  • One command to read any RSS feed
  • Different RSS feed profiles enabled

Quick Start

In the require key of composer.json file add the following:

"awjudd/feed-reader": "1.1.*"

Run the Composer update command

$ composer update

In your config/app.php add 'Awjudd\Layoutview\LayoutviewServiceProvider' to the end of the $providers array

'providers' => array(

    'Illuminate\Foundation\Providers\ArtisanServiceProvider',
    'Illuminate\Auth\AuthServiceProvider',
    ...
    'Awjudd\FeedReader\FeedReaderServiceProvider',

),

'aliases' => array(

    'App'             => 'Illuminate\Support\Facades\App',
    'Artisan'         => 'Illuminate\Support\Facades\Artisan',
    ...
    'FeedReader'      => 'Awjudd\FeedReader\Facades\FeedReader',
),

Setup

Publishing the Configuration

After installing through composer, you should publish the config file. To do this, run the following command:

$ php artisan config:publish awjudd/feed-reader

Configuration Values

Once published, the configuration file contains an array of profiles. These will define how the RSS feed reader will react. By default the "default" profile will used. For more information on: [here]http://simplepie.org/wiki/reference/simplepie/start.

How to use

Once you have all of the configuration settings set up, in order to read a RSS feed all you need to do is call the read function:

FeedReader::read('http://www.example.com/rss');

This function accepts 2 parameters however, the second parameter is optional. The second parameter is the configuration profile that should be used when reading the RSS feed.

This will return to you the SimplePie object with the RSS feed in it.

License

Feed Reader is free software distributed under the terms of the MIT license

Additional Information

Any issues, please report here

l4-feed-reader's People

Contributors

awjudd avatar antonniklasson avatar maniactwister avatar konomae avatar

Watchers

James Cloos avatar Aman jain avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.