justinrainbow / epub
Installs: 180 405
Dependents: 0
Suggesters: 0
Security: 0
Stars: 51
Watchers: 5
Forks: 25
Open Issues: 4
pkg:composer/justinrainbow/epub
Requires
- php: >=5.3.2
This package is not auto-updated.
Last update: 2025-10-18 06:01:25 UTC
README
Installation
Composer (preferred)
Add justinrainbow/epub to your composer.json file.
{ "require": { "justinrainbow/epub": "master-dev" } }
Then just run the composer.phar install (or composer.phar update if
you added this to an existing composer.json file).
wget http://getcomposer.org/composer.phar php composer.phar install
Symfony2 Deps
Add the following to your deps file
[epub] git=http://github.com/justinrainbow/epub.git
After you have run the bin/vendors install script, add the following
to your autoload.php file.
<?php $loader->registerNamespaces(array( // ... other namespaces ... 'ePub' => __DIR__.'/../vendor/epub/src' ));
Usage
<?php $reader = new \ePub\Reader(); $epub = $reader->load('my-book.epub'); printf("Title: %s\n", $epub->getMetadata()->get('title'));