tommyknocker / fb2-parser
Simple FB2 to HTML parser
v0.5.6
2019-01-28 11:19 UTC
Requires
- php: >=7.0.0
- imangazaliev/didom: ^1.13
- intervention/image: ^2.4
- symfony/filesystem: ^4.1
Requires (Dev)
- roave/security-advisories: dev-master
- symfony/var-dumper: ^4.0
This package is auto-updated.
Last update: 2024-04-28 23:38:32 UTC
README
FB2Parser is a PHP parser for fb2 books.
Getting Started
composer require tommyknocker/fb2-parser
- See public accessors list
- See example
Features
- Information Parsing
- Authors
- Translators
- Genres
- Keywords
- ...
- Images Parsing
- Content Parsing
- Conversion of notes
Public Accessors
FB2Controller-> ...
Name | desc |
---|---|
withNotes() | parse with notes, else notes will be deleted |
withImages(['directory' => ... , 'imagesWebPath' => ...] | parse with images, else images will be deleted |
startParse() | start parsing |
getBook() | return Book object |
getBook()-> ...
Book | desc |
---|---|
getAuthors() | return array of Author objects |
getTranslators() | return array of Translator objects |
getInfo() | return BookInfo object |
getChapters() | return array of Chapters objects |
getCover() | return Book cover image |
getAuthors()[$key]-> ...
Book | desc |
---|---|
getFirstName() | return first name of the author |
getLastName() | return last name of the author |
getFullName() | return full name of the author |
getTranslators()[$key]-> ...
Book | desc |
---|---|
getFirstName() | return first name of the translator |
getMiddleName() | return middle name of the translator |
getLastName() | return last name of the translator |
getFullName() | return full name of the translator |
getNickName() | return nickname of the translator |
getEmail() | return email of the translator |
getInfo()-> ...
Book | desc |
---|---|
getTitle() | return title of the book |
getAnnotation() | return annotation of the book |
getGenres() | return array of genres of the book |
getKeywords() | return keywords of the book |
getLang() | return array of lang of the book |
getPublisher() | return Publisher of the book |
getYear() | return year when book was published |
getChapters()[$key]-> ...
Book | desc |
---|---|
getTitle() | return title of the chapter |
getContent() | return content of the chapter |