No description, website, or topics provided.
PHP
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
src/ePub
tests/ePub/Tests
.gitignore
.travis.yml
LICENSE
README.md
bootstrap.php
composer.json
phpunit.xml.dist

README.md

ePub lib for PHP - project status - Build Status

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'));

Resources