Download the PHP package andileco/php-epub without Composer
On this page you can find all versions of the php package andileco/php-epub. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download andileco/php-epub
More information about andileco/php-epub
Files in andileco/php-epub
Package php-epub
Short Description A modern PHP library for creating ePub 3 ebooks. Zero dependencies, full ePub 3.0.1 compliance, accessibility support, SVG and MathML embedding.
License MIT
Informations about the package php-epub
php-epub
A modern PHP library for creating ePub 3 ebooks. Zero dependencies, full ePub 3.0.1 compliance, ePub 2 NCX fallback, accessibility metadata, SVG and MathML support.
Requirements
- PHP 8.2+
- ext-zip
- ext-dom
- ext-libxml
Installation
Quick Start
Features
Fluent Builder API
All builder methods return new instances (immutable), so you can chain them:
ePub 3 Semantic Types
Tag chapters with semantic meaning from the EPUB 3 Structural Semantics Vocabulary:
This adds epub:type attributes to the XHTML and generates a landmarks navigation.
Nested Chapters
Create hierarchical table of contents:
SVG Support
SVG is an ePub 3 core media type. Include inline SVG for charts, diagrams, and illustrations:
The library automatically detects SVG content and sets the required properties="svg" in the OPF manifest.
MathML Support
Include mathematical equations using MathML:
Fixed Layout
Create pixel-perfect pages for comics, cookbooks, data dashboards, and children's books:
Presets are available for common dimensions:
For full control over spread and orientation:
Mixed Layout
Combine reflowable and fixed-layout pages in a single book. Useful for a reflowable book with occasional full-page charts or illustrations:
Accessibility
Include EPUB Accessibility and schema.org metadata:
Resources
Embed images, fonts, and other files:
Cover Image
Output Options
Architecture
The library is organized into a public API and internal implementation:
- Public:
Epub,Metadata,Chapter,Resource,Semantic,Accessibility - Internal:
Packager,OpfBuilder,NavBuilder,NcxBuilder,XhtmlBuilder,ContainerBuilder,MimeTypes
Internal classes handle the ePub specification details (OPF manifest, ZIP packaging, XHTML wrapping) and should not be used directly.
License
MIT
All versions of php-epub with dependencies
ext-zip Version *
ext-dom Version *
ext-libxml Version *