develpr / phindle
Creates full featured opf/ncx files for Kindle (mobi) ebooks and allows for images and other static resources
Requires
- php: >=5.4.0
This package is not auto-updated.
Last update: 2024-11-09 16:27:15 UTC
README
What does Phindle do?##
Phindle makes it simpler to create a well formatted kindle friendly mobi ebook. This is done by allowing you to add content to an instance of the Phindle class, and then from there automatically generated the supporting meta/structure related files required by kindlegen.
Assuming you provide the necessary inputs (see below), the mobi book generated will automatically have:
- A table of contents in the beginning of the book
- A logic table of contents (this is table of contents accessible via Kindle's menu - not the same thing as the ToC in the beginning of a book)
- Various metadata populed within the book (title, author, isbn, publish date, plus cover images, the reading order of your content, etc)
Prerequisites/Requisites##
Unfortunately, the command line utility kindlegen
is a prerequisite of Phindle. It is not something that can be installed via composer and so I wanted to mention it first before anything else because it needs to be installed manually. kindlegen
is a tool provided free by Amazon for creating mobi ebook files from a variety of different input formats, including most notably (for us) .html files.
kindlegen
can be downloaded here
You may need to adjust permissions in your environment - Phindle creates a number of temporary files required by the kindlegen tool. This includes a number of html files, an ncx file, and an opf file. You can specify the path that these files are saved to, and they will be automatically deleted after creating of the final ebook.
Use
Check out a video walkthrough of the features/use of Phindle below: