Download .zip |
Info | Example | View files (59) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2017-10-25 (1 month ago) | Not yet rated by the users | Total: 3 This week: 3 | All time: 9,092 This week: 211 |
Version | License | PHP version | Categories | |||
phpepub 1.0 | The PHP License | 5 | PHP 5, Files and Folders, Content man... |
Description | Author | |||||||||||||
This package can create ebook files dynamically in the EPub format. |
|
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 projects is also hosted on PHPClasses.org at the addresses: http://www.phpclasses.org/package/6115
PHPePub is meant to be easy to use for small projects, and still allow for comples and complete e-books should the need arise.
The Zip.php class in this project originates from http://www.phpclasses.org/package/6110
or on Github: git://github.com/Grandt/PHPZip.git
See the examples for example usage. The php files have "some" doumentation in them in the form of Javadoc style function headers.
Add this requirement to your composer.json
file:
"grandt/phpepub": ">=4.0.3"
If you already have Composer installed, skip this part.
Packagist, the main composer repository has a neat and very short guide. Or you can look at the guide at the Composer site.
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": {
"grandt/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.
<?php
require 'vendor/autoload.php';
.
.
.
Files |
File | Role | Description | ||
---|---|---|---|---|
legacy (4 files) | ||||
src (2 files, 1 directory) | ||||
tests (9 files, 1 directory) | ||||
composer.json | Data | Auxiliary data | ||
documentation.css | Data | Auxiliary data | ||
ReadMe.html | Doc. | Documentation | ||
README.md | Doc. | Documentation | ||
REVISION.TXT | Data | Revision log | ||
test.php | Example | Example script |
Files | / | legacy |
File | Role | Description |
---|---|---|
composer.json | Data | Auxiliary data |
EPub.Test.Example.php | Example | Example script |
install.bat | Data | Auxiliary data |
install.sh | Data | Auxiliary data |
Files | / | src |
File | Role | Description | ||
---|---|---|---|---|
PHPePub (2 directories) | ||||
lib.uuid.manual.html | Doc. | Documentation | ||
lib.uuid.php | Class | Class source |
Files | / | src | / | PHPePub | / | Core |
File | Role | Description | ||
---|---|---|---|---|
Structure (2 files, 2 directories) | ||||
EPub.php | Class | Class source | ||
EPubChapterSplitter.php | Class | Class source | ||
Logger.php | Class | Class source | ||
StaticData.php | Class | Class source |
Files | / | src | / | PHPePub | / | Core | / | Structure | / | NCX |
File | Role | Description |
---|---|---|
AbstractNavEntry.php | Class | Class source |
NavMap.php | Class | Class source |
NavPoint.php | Class | Class source |
Files | / | src | / | PHPePub | / | Core | / | Structure | / | OPF |
File | Role | Description |
---|---|---|
DublinCore.php | Class | Class source |
Guide.php | Class | Class source |
Item.php | Class | Class source |
Itemref.php | Class | Class source |
Manifest.php | Class | Class source |
MarcCode.php | Class | Class source |
Metadata.php | Class | Class source |
MetaValue.php | Class | Class source |
Reference.php | Class | Class source |
Spine.php | Class | Class source |
Files | / | src | / | PHPePub | / | Helpers |
File | Role | Description | ||
---|---|---|---|---|
enums (1 file) | ||||
Rendition (1 file) | ||||
CalibreHelper.php | Class | Class source | ||
Enum.php | Class | Class source | ||
FileHelper.php | Class | Class source | ||
IBooksHelper.php | Class | Class source | ||
ImageHelper.php | Class | Class source | ||
MimeHelper.php | Class | Class source | ||
StringHelper.php | Class | Class source | ||
URLHelper.php | Class | Class source |
Files | / | src | / | PHPePub | / | Helpers | / | Rendition |
File | Role | Description |
---|---|---|
RenditionHelper.php | Class | Class source |
Files | / | tests |
File | Role | Description | ||
---|---|---|---|---|
demo (9 files) | ||||
composer.json | Data | Auxiliary data | ||
EPub.Example1.php | Example | Example script | ||
EPub.Example2.php | Example | Example script | ||
EPub.Example2b.php | Example | Example script | ||
EPub.Example3.php | Example | Example script | ||
EPub.Example3_1.php | Example | Example script | ||
EPub.Example3_2.php | Example | Example script | ||
EPub.ExampleImg.php | Example | Example script | ||
EPub.ExampleSimple.php | Example | Example script |
Files | / | tests | / | demo |
File | Role | Description |
---|---|---|
512x700.jpg | Data | Auxiliary data |
512x700_1.jpg | Data | Auxiliary data |
512x700_2.jpg | Data | Auxiliary data |
512x700_3.jpg | Data | Auxiliary data |
512x700_g1.gif | Data | Auxiliary data |
cover-image.jpg | Data | Auxiliary data |
DemoInlineImage.jpg | Data | Auxiliary data |
rxhVVUP.gif | Icon | Icon image |
test.svg | Data | Auxiliary data |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.