PHPackages                             aadutskevich/epub - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. aadutskevich/epub

ActiveLibrary

aadutskevich/epub
=================

Package to create and stream e-books in the ePub 2.0 and 3.0 formats.

4.1.3(8mo ago)022LGPL-2.1PHP

Since Nov 19Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/aadutskevich/epub)[ Packagist](https://packagist.org/packages/aadutskevich/epub)[ RSS](/packages/aadutskevich-epub/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (4)Dependencies (3)Versions (5)Used By (0)

PHP ePub generator
==================

[](#php-epub-generator)

PHPePub allows a php script to generate ePub Electronic books on the fly, and send them to the user as downloads.

PHPePub support most of the ePub 2.01 specification, and enough of the new ePub3 specification to make valid ePub 3 books as well.

Installation
------------

[](#installation)

### Import

[](#import)

Add this requirement to your `composer.json` file:

```
    "aadutskevich/phpepub": ">=4.0.3"
```

### Composer

[](#composer)

If you already have Composer installed, skip this part.

[Packagist](https://packagist.org/), the main composer repository has a neat and very short guide. Or you can look at the guide at the [Composer site](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx).

The easiest for first time users, is to have the composer installed in the same directory as your composer.json file, though there are better options.

Run this from the command line:

```
php -r "readfile('https://getcomposer.org/installer');" | php

```

This will check your PHP installation, and download the `composer.phar`, which is the composer binary. This file is not needed on the server though.

Once composer is installed you can create the `composer.json` file to import this package.

```
{
    "require": {
        "aadutskevich/phpepub": ">=4.0.3",
        "php": ">=5.3.0"
    }
}
```

Followed by telling Composer to install the dependencies.

```
php composer.phar install

```

this will download and place all dependencies defined in your `composer.json` file in the `vendor` directory.

Finally, you include the `autoload.php` file in the new `vendor` directory.

```
