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

v0.1.1 2024-04-12 11:48 UTC

This package is auto-updated.

Last update: 2026-01-13 21:30:04 UTC


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();