Skip to content

Releases: kiwilan/php-ebook

v2.1.02

30 Aug 11:40
5917e47
Compare
Choose a tag to compare
  • 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

v2.1.01

29 Aug 07:02
9068cb8
Compare
Choose a tag to compare
  • avoids crashing when trying to read metadata while archive is null, by @SergioMendolia in #45

v2.1.0

28 Aug 16:43
4ecb1ec
Compare
Choose a tag to compare
  • Add some improvements for description parsing (remove extra spaces, remove newlines, etc.)
  • Add EbookCreator::class with create() method into Ebook::class that allows to create ebook from Ebook instance
    • Some methods allow to set content to ebook: addFromString(), addFile(), addDirectory()

v2.0.20

28 Aug 08:19
cef5002
Compare
Choose a tag to compare
  • add descriptionHtml() method to Ebook::class, which can contains description with html tags if it is available, html is sanitized, original description is still available via description() method with plain text
  • add getBasename() method to Ebook::class, which returns basename of ebook file, getFilename() now return real filename of ebook file
  • add isValid(string $path) static method to Ebook::class, which checks if ebook file is valid, thanks to @SergioMendolia: #38
  • fix <dc:creator> empty tag in opf file, thanks to @SergioMendolia: #39
  • Bugfixes

2.0.12

10 Aug 15:19
1bb37a0
Compare
Choose a tag to compare
  • fix OpfMetadata dcRights() parse array to string

2.0.11

10 Aug 15:06
0a3bb4b
Compare
Choose a tag to compare
  • add Epub property isBadFile 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 with isBadFile() method or with hasMetadata() method
  • fix some problems with OPF parsing to be more flexible

2.0.1

10 Aug 14:42
dd0958e
Compare
Choose a tag to compare
  • add opf:metadata support for OPF files

2.0.0

08 Aug 18:30
ec30f8c
Compare
Choose a tag to compare

BREAKING CHANGES

  • All simple getters have now get prefix. For example, getTitle() instead of title(), getPublisher() instead of publisher(), etc. It concerns all simple getters of EpubMetadata, 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 now get prefix.

Bugfixes

  • BookContributor and BookIdentifier can be more flexible with mixed types

1.3.54

23 Jul 15:48
3b74d5d
Compare
Choose a tag to compare
  • EbookCover content method fix

1.3.53

07 Jul 15:11
67dc7f9
Compare
Choose a tag to compare
  • bump kiwilan/php-archive 1.5.12