Releases: kiwilan/php-ebook
Releases · kiwilan/php-ebook
v2.1.02
- Better handle of PDF, parser works even if metadata are not present
- Add more tests on PDF, update
kiwilan/php-archive
with patch for PDF - Thanks to @SergioMendolia for PR #48
- Add more tests on PDF, update
v2.1.01
- avoids crashing when trying to read metadata while archive is null, by @SergioMendolia in #45
v2.1.0
- Add some improvements for
description
parsing (remove extra spaces, remove newlines, etc.) - Add
EbookCreator::class
withcreate()
method intoEbook::class
that allows to create ebook fromEbook
instance- Some methods allow to set content to ebook:
addFromString()
,addFile()
,addDirectory()
- Some methods allow to set content to ebook:
v2.0.20
- add
descriptionHtml()
method toEbook::class
, which can contains description with html tags if it is available, html is sanitized, original description is still available viadescription()
method with plain text - add
getBasename()
method toEbook::class
, which returns basename of ebook file,getFilename()
now return real filename of ebook file - add
isValid(string $path)
static method toEbook::class
, which checks if ebook file is valid, thanks to @SergioMendolia: #38 - fix
<dc:creator>
empty tag inopf
file, thanks to @SergioMendolia: #39 - Bugfixes
2.0.12
- fix
OpfMetadata
dcRights()
parse array to string
2.0.11
- add
Epub
propertyisBadFile
to check if the file is corrupted, eBook file will be read but not parsed if it is corrupted, it's possible to know if file is valid withisBadFile()
method or withhasMetadata()
method - fix some problems with OPF parsing to be more flexible
2.0.1
- add
opf:metadata
support for OPF files
2.0.0
BREAKING CHANGES
- All simple getters have now
get
prefix. For example,getTitle()
instead oftitle()
,getPublisher()
instead ofpublisher()
, etc. It concerns all simple getters ofEpubMetadata
,EpubChapter
,EpubHtml
,NcxMetadata
,EpubContainer
,OpfMetadata
,Ebook
,BookIdentifier
,EbookCover
,EbookMetadata
,AudiobookMetadata
,BookAuthor
,CbaMetadata
,CbamMetadata
,MetaTitle
classes.
Why?
All these classes have some methods like setters or actions. To be consistent and clear, all simple getters have nowget
prefix.
Bugfixes
BookContributor
andBookIdentifier
can be more flexible withmixed
types
1.3.54
- EbookCover
content
method fix
1.3.53
- bump
kiwilan/php-archive
1.5.12