Download the PHP package entidi/feedreader without Composer

On this page you can find all versions of the php package entidi/feedreader. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package feedreader

silverstripe-feedreader

License Build Status Code Quality Latest Stable Version

The silverstripe-feedreader module implements a new page type (FeedReaderPage) that can access the data contained in an external RSS 2.0 or ATOM 1.0 feed. The feed format is automatically deduced from its content, that is if the //channel/item XPath expression resolves to a non-emtpy list it is considered an RSS2 feed, otherwise it is considered ATOM1, and the //feed/entry expression will be used instead.

The main developement is done in dev: that is merged into master when stable enough. When this happens, an appropriate 2.* release is tagged. dev and master branches, together with any 2.* release, are compatibles with SilverStripe 4. For SilverStripe 3 you should take a look at the ss3 branch and 1.* releases.

Installation

With composer:

composer require entidi/feedreader

Without composer, download the tarball and unpack it under the base directory. This method is not really tested, so it can be possible you will need to tweak something.

Usage

The default template (templates/eNTiDi/FeedReader/Layout/FeedReaderPage.ss) is compatible with silverstrap ^4.0 but it can be easily overriden by redefining the FeedReaderPage.ss file in your own theme with higher priority.

To provide access to the latest news, you can define a function similar to the following:

public function LatestNews()
{
    $news = DataObject::get_one('eNTiDi\FeedReader\FeedReaderPage');
    return $news ? $news->Items(1)->first() : null;
}

Then you can enhance your feed page with a template snippet, e.g.:

<% with $LatestNews %>
<h2>Latest news</h2>
<section>
    <p>$Date.Date: $Summary.XML</p>
    <a href="$Link.ATT">More ...</a>
</section>
<% end_with %>

Support

This project has been developed by ntd. Its home page is shared by other SilverStripe modules and themes.

To check out the code, report issues or propose enhancements, go to the dedicated tracker. Alternatively, you can do the same things by leveraging the official github repository.


All versions of feedreader with dependencies

PHP Build Version
Package Version
Requires silverstripe/framework Version ^4.0
guzzlehttp/guzzle Version ^6.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package entidi/feedreader contains the following files

Loading the files please wait ....