aleksei-anisimov / simple-fb2
fb2 parser
Installs: 25
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/aleksei-anisimov/simple-fb2
README
SimpleFB2
#Class for parsing fb2 files
use SimpleFB2\SimpleFB2
$path_to_file = "/home/username/file.fb2"; $book = new SimpleFB2($path_to_file);
Returns object description have authors name, book name, piblication date and etc.
Getting authors of book
$author = $book->getAuthor();
Getting genres
$genres = $book->getGenres();
Getting path to cover
$book->setCoverPath('/home/username/img'); $cover = $book->getCover();
Getting text of book
$book->getText();
Getting annotation list
$book->readNotes();