Skip to content

Releases: kiwilan/php-ebook

v2.6.0

23 Jun 09:56
f065de6
Compare
Choose a tag to compare

BREAKING CHANGES

  • Remove getDescriptionHtml() method from Ebook class.
  • Remove limit parameter from getDescription() method in Ebook class.
  • getDescription() method in Ebook class now returns raw description without any formatting.

FEATURES

To access to advanced book description, you can use getDescriptionAdvanced() method with BookDescription class.

  • getDescription() method now returns raw description without any formatting.
  • toHtml() method formats the description to HTML.
  • toString() method formats the description to plain text.
  • toStringMultiline() method formats the description to plain text with new lines.

All methods have limit parameter to limit the length of the description.

BUGFIXES

  • Improve audiobook parsing with safe array extraction.

MISC

  • Remove many utilities method from EbookModule class, now BookDescription class is responsible for parsing book description.
  • limitLength() method is now into EbookUtils class.

v2.5.13

16 Jun 06:03
522ee87
Compare
Choose a tag to compare
  • AudiobookModule::class: fix parsing of audiobook with volume 0.

v2.5.12

01 Jun 07:41
00b6f9b
Compare
Choose a tag to compare

MetaTitle::class: clear docs

v2.5.11

26 May 19:37
904529e
Compare
Choose a tag to compare

EbookUtils::class fix parseStringWithSeperator() method.

v2.5.10

26 May 18:45
a770c97
Compare
Choose a tag to compare
  • MetaTitle::class : now native slugifier is fixed, float volume works now, volume use 000 padding.
  • Allow authors with ,, ; and & in the name for .opf, .pdf, .mobi and audiobooks.

v2.5.0

22 May 16:08
dd7d714
Compare
Choose a tag to compare
  • MetaTitle::class: fromData() method volume parameter is now string|int|float|null instead of string|int|null.

v2.4.9

22 May 15:42
1519d50
Compare
Choose a tag to compare

New feature with volume numbers as floats.

  • Ebook::class: now getVolume() returns int|float|null instead of int|null
  • ComicMeta::class: new property number (int|float|null), volume and storyArcNumber are now int|float|null instead of int|null

v2.4.8

15 May 11:30
172fd00
Compare
Choose a tag to compare

For audiobooks, specifications are now based on audiobookshelf specifications.

**ID3 Tag (case-insensitive) ** eBook
artist / album-artist Authors*
album / title Title
subtitle Extra property subtitle
publisher Publisher
year Publish Year
composer Extra property narrators
description Description
genre Tags**
series / mvnm Series
series-part / mvin Volume
language / lang Language
isbn Identifiers isbn
asin / audible_asin Identifiers asin
Overdrive MediaMarkers Extra property chapters
  • * Authors naming as well as multiple authors separated by ,, ;, & or and.
  • ** Tags can include multiple tags separated by /, //, or ;. e.g. "Science Fiction/Fiction/Fantasy"

v2.3.8

06 Mar 09:20
946f750
Compare
Choose a tag to compare
  • OpfItem::class method getMeta() is now deprecated. Use getMetaItems() instead.
  • OpfItem::class method getMetaItems() will now return an array of BookMeta::class objects.
  • OpfItem::class method getMetaItem(string $key) will now return BookMeta::class object or null.

v2.3.7

05 Feb 12:12
1eed732
Compare
Choose a tag to compare

MetaTitle::class: add fromData() static method to generate a MetaTitle object from a raw data and rename make() to fromEbook().