PHP code example of justinrainbow / epub

1. Go to this page and download the library: Download justinrainbow/epub library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

justinrainbow / epub example snippets




$loader->registerNamespaces(array(
    // ... other namespaces ...
    'ePub'  =>  __DIR__.'/../vendor/epub/src'
));



$reader = new \ePub\Reader();
$epub = $reader->load('my-book.epub');

printf("Title: %s\n", $epub->getMetadata()->get('title'));
bash
wget http://getcomposer.org/composer.phar
php composer.phar install