Skip to content
forked from wallabag/PHPePub

PHP Classes for dynamically generating EPub files.

Notifications You must be signed in to change notification settings

Hi-Folks/PHPePub

This branch is 7 commits ahead of wallabag/PHPePub:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8866fc6 · Dec 30, 2023
Dec 20, 2023
Dec 30, 2023
Dec 30, 2023
Dec 30, 2023
May 14, 2015
Dec 20, 2023
Mar 16, 2016
Mar 10, 2013
Dec 20, 2023
Mar 10, 2013
Dec 20, 2023
Dec 30, 2023
Dec 30, 2023

Repository files navigation

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. The original project was: https://github.com/Grandt/PHPePub Then the project was forkend into: https://github.com/wallabag/PHPePub And then we forked the project to update the codebase with a modern version of PHP. To do that we used RectorPHP to update automatically the codebase to PHP 8.1. Then we update the style according to PER standards https://www.php-fig.org/per/coding-style/.

Installation

composer require hi-folks/phpepub

Using PHPePub

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

<?php
    require 'vendor/autoload.php';
    .
    .
    .

TODO:

The goal is to encompass the majority of the features in the ePub 2.0 and 3.0 specifications, except the Daisy-type files.

  • Add better handling of Reference structures.
  • Improve handling of media types and linked files.
  • A/V content is allowed, but not recommended, and MUST have a fallback chain ending in a valid file. If no such chain is provided, the content should not be added.
  • Documentation, no one reads it, but everyone complains if it is missing.
  • Better examples to fully cover the capabilities of the EPub classes.
  • more TODO's.

About

PHP Classes for dynamically generating EPub files.

Topics

Resources

Stars

Watchers

Forks

Languages

  • PHP 87.9%
  • HTML 11.8%
  • Other 0.3%