Skip to content

ridi/epub

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ePub lib for PHP

Build Status

Installation

Composer (preferred)

Add ridibooks/epub to your composer.json file.

{
    "require": {
        "ridibooks/epub": "dev-master"
    }
}

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/ridi/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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 97.4%
  • HTML 2.6%