bookeenweb/opds-parser

Parse OPDS XML

1.1.3 2018-09-11 09:55 UTC

This package is auto-updated.

Last update: 2024-05-12 03:17:28 UTC


README

PHP Parser ODPS compliant. This library is intended to parse OPDS feeds. Feed examples :

Step 1: Download the Bundle

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

$ composer require bookeenweb/opds-parser

This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.

Step 2: Enable the Bundle

use OpdsBundle\Business\OpdsParserBusiness;

...

/**
 * @var OpdsParserBusiness
 */
private $odpsParser;

public function __construct()
{
    $this->odpsParser = new OpdsParserBusiness();
    ...
}

Step 2: How to use

  • parseFile : read an OPDS feed from a file
  • parseURL : read an OPDS feed from an url
  • parseSearchUrl : application/opensearchdescription+xml feed parser. Retrieve search urls