bookeenweb / opds-parser
Parse OPDS XML
1.1.3
2018-09-11 09:55 UTC
Requires
- php: >=5.5.9
Requires (Dev)
- phpunit/phpunit: ^5
README
PHP Parser ODPS compliant. This library is intended to parse OPDS feeds. Feed examples :
- http://www.feedbooks.com/catalog.atom
- http://longueuil.pretnumerique.ca/catalog.atom
- https://framabookin.org/b/opds/
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