2017 © Pedro Peláez
 

library rssparser

A library for parsing RSS feeds and displaying the contents on webpages

image

dapphp/rssparser

A library for parsing RSS feeds and displaying the contents on webpages

  • Sunday, June 21, 2015
  • by dapphp
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Name:

Dapphp\RssParser - A PHP5 class for parsing RSS feeds for display on webpages, (*1)

Version:

1.1.0, (*2)

Author:

Drew Phillips drew@drew-phillips.com, (*3)

Requirements:

  • PHP 5.3 or greater

Synopsis:

Basic Usage, (*4)

$parser = new Dapphp\RssParser\RssParser;
$parser->parse($urlOfRssFeed)
       ->show();    

Usage with caching & custom template, (*5)

$template = <<<HTML
    <div>
      <img src="#{dc:image.src}" height="#{dc:image.height}" width="#{dc:image.width}" align="left"/>
      <a href="#{link}" style="font-size: 1.2em" target="_blank">#{title}</a><br>
      #{content:encoded}
      Published on #{pubDate} by #{dc:creator}
    </div>
    <hr>
HTML;

$parser->setCacheDir('/tmp')
       ->setCacheLifetime(600)
       ->setItemTemplate($template)
       ->parse($feedUrl)
       ->show(10); // show 10 items

Description:

Dapphp\RssParser is a PHP class for parsing RSS feeds and displaying the contents on webpages., (*6)

Using this class the contents of an RSS feed can be displayed on any PHP enabled webpage in 2 lines of code. Uses no external dependencies (e.g. cURL) and requires PHP 5.3 or greater. Supports http/https URLs, caching of feed contents, and displaying feed contents using simple templates., (*7)

Copyright:

Copyright (c) 2015 Drew Phillips
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

- Redistributions of source code must retain the above copyright notice,
  this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice,
  this list of conditions and the following disclaimer in the documentation
  and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.

The Versions

21/06 2015

dev-master

9999999-dev http://neoprogrammers.com

A library for parsing RSS feeds and displaying the contents on webpages

  Sources   Download

BSD

The Requires

  • php >=5.3.0

 

parser atom rss

21/06 2015

v1.0.2

1.0.2.0 http://neoprogrammers.com

A library for parsing RSS feeds and displaying the contents on webpages

  Sources   Download

BSD

The Requires

  • php >=5.3.0

 

parser atom rss

01/06 2015

v1.0.1

1.0.1.0 http://neoprogrammers.com

A library for parsing RSS feeds and displaying the contents on webpages

  Sources   Download

BSD

The Requires

  • php >=5.3.0

 

parser atom rss

18/05 2015

v1.0

1.0.0.0 http://neoprogrammers.com

A library for parsing RSS feeds and displaying the contents on webpages

  Sources   Download

BSD

The Requires

  • php >=5.3.0

 

parser atom rss