Releases: kiwilan/php-ebook
v2.3.5
Ebook
class: addgetCreatedAt()
method to get the file modified date, addgetSize()
method to get the file size andgetSizeHumanReadable()
method to get the file size in human readable formatAudiobookModule
: add all audio metadata togetExtras()
method, removecomment
fromgetDescription()
method (now available intogetExtras()
method)
v2.3.4
- Remove year from
MetaTitle
getSeriesSlug()
to avoid duplicate series. - Move namespace
Tools
toModels
v2.3.3
Refactor determiners for MetaTitle
.
v2.3.2
Fix version.
v2.3.1
Deprecated some MetaTitle
methods getSlugSort()
, getSlugUnique()
, getSerieSlug()
, getSerieSlugSort()
, getSerieSlugUnique()
, getSlugSortWithSerie()
, getUniqueFilename()
. Now only getSlug()
, getSlugSimple()
, getSeriesSlug()
, getSeriesSlugSimple()
are available.
Slug have to be unique, so default slug take some metadata to be unique, like in this example:
An EPUB with title La pâle lumière des ténèbres
with main author Pierre Bottero
, series A comme Association
, volume 1
, language fr
and published in 1980
will have the slug pale-lumiere-des-tenebres-a-comme-association-01-1980-pierre-bottero-epub-fr
.
You can use getSlugSimple()
to have a simple slug, like pale-lumiere-des-tenebres
.
For series, you can use getSeriesSlug()
to have a slug with series name, like a-comme-association-1980-pierre-bottero-epub-fr
.
And getSeriesSlugSimple()
to have a simple slug with series name, like a-comme-association
.
v2.3.0
Drop kiwilan/php-audio
dependency.
Audiobooks are cool, but I suppose many users don't need it. So I think it's better to drop kiwilan/php-audio
dependency, you have to install kiwilan/php-audio
manually.
If you scan audiobooks without kiwilan/php-audio
installed, you will get an error message.
v2.2.01
Update dependencies (drop symfony/process dependency)
EbookMetadata
is nowEbookParser
for consistency- Method
getMetadata
is nowgetParser
- Method
hasMetadata
is nowhasParser
- Method
BookIdentifier
can use nowautoDetect
to detect identifierscheme
fromvalue
, you can disable this feature by passingfalse
as third argument (support isbn10, isbn13, doi and uuid)
v2.2.0
Breaking changes
- All
Metadata
internal classes have been renamed toModule
- Some internal parser classes, have been moved into
Parser
namespace - All
getContent()
methods have been renamed togetContents()
(old methods are deprecated)
New features
- MOBI and derivatives support (
.azw
,.azw3
,.kf8
,.kfx
,.mobi
,.prc
) with cover - FB2 support (
.fb2
) with cover and series - Improve BookIdentifier scheme detection
Misc
- Fixing EPUB volume
0
issue - Add more tests with samples
- Update dependencies
- Improve documentation
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