Skip to content

Latest commit

 

History

History
50 lines (35 loc) · 750 Bytes

installation.markdown

File metadata and controls

50 lines (35 loc) · 750 Bytes

Installation

Versions

  • Development version: master
  • Stable version: use the last tag

Installation with Composer

composer require miniflux/picofeed @stable

And download the code:

composer install # or update

Usage example with the Composer autoloader:

<?php

require 'vendor/autoload.php';

use PicoFeed\Reader\Reader;

try {

    $reader = new Reader;
    $resource = $reader->download('http://linuxfr.org/news.atom');

    $parser = $reader->getParser(
        $resource->getUrl(),
        $resource->getContent(),
        $resource->getEncoding()
    );

    $feed = $parser->execute();

    echo $feed;
}
catch (Exception $e) {
    // Do something...
}