PHPackages                             adrorocker/epub-builder - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. adrorocker/epub-builder

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

adrorocker/epub-builder
=======================

Convert Tiptap JSON to valid EPUB 3.3 files with an injectable renderer interface

1.0.0(1mo ago)1217MITPHPPHP ^8.1CI passing

Since May 6Pushed 1mo agoCompare

[ Source](https://github.com/adrorocker/epub-builder)[ Packagist](https://packagist.org/packages/adrorocker/epub-builder)[ RSS](/packages/adrorocker-epub-builder/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

adrorocker/epub-builder
=======================

[](#adrorockerepub-builder)

[![tests](https://github.com/adrorocker/epub-builder/actions/workflows/tests.yml/badge.svg)](https://github.com/adrorocker/epub-builder/actions/workflows/tests.yml)

Convert Tiptap JSON documents into valid **EPUB 3.3** files. Framework-agnostic, zero runtime dependencies, with an injectable renderer interface so you can plug in your own Tiptap-to-XHTML logic.

- **Spec-conformant**: passes the [W3C reference validator (EPUBCheck 5.x)](https://github.com/w3c/epubcheck) with 0 errors / 0 warnings.
- **Cross-reader**: tested against Apple Books, calibre, and the EPUBCheck reference. Ships an EPUB 2 NCX fallback for legacy readers (older Kindle apps, ADE pre-v4).
- **Tiptap-native**: a default renderer covers the standard Tiptap node and mark set. Custom Tiptap nodes can be registered with a one-line handler.
- **No third-party runtime deps**: only PHP 8.1+ and the `zip` and `dom` extensions.

---

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

[](#installation)

```
composer require adrorocker/epub-builder
```

**Requirements**: PHP 8.1+, `ext-zip`, `ext-dom`.

---

Quick start
-----------

[](#quick-start)

```
