PHPackages                             tizis/fb2-parser - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. tizis/fb2-parser

AbandonedArchivedLibrary[Parsing &amp; Serialization](/categories/parsing)

tizis/fb2-parser
================

Simple FB2 to HTML parser

0.5.3(7y ago)122.7k11[3 issues](https://github.com/tizis/FB2-Parser/issues)MITPHPPHP &gt;=7.0.0

Since Jul 9Pushed 4y ago1 watchersCompare

[ Source](https://github.com/tizis/FB2-Parser)[ Packagist](https://packagist.org/packages/tizis/fb2-parser)[ Docs](https://github.com/tizis/FB2-Parser)[ RSS](/packages/tizis-fb2-parser/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (3)Dependencies (5)Versions (4)Used By (0)

FB2Parser - Simple FB2 to HTML
==============================

[](#fb2parser---simple-fb2-to-html)

FB2Parser is a PHP parser for fb2 books.

Getting Started
---------------

[](#getting-started)

1. `composer require tizis/fb2-parser`
2. See public accessors list
3. See example

Features
--------

[](#features)

- Information Parsing
    - Authors
    - Translators
    - Genres
    - Keywords
    - ...
- Images Parsing
- Content Parsing
- Conversion of notes

Public Accessors
----------------

[](#public-accessors)

### FB2Controller-&gt; ...

[](#fb2controller--)

NamedescwithNotes()parse with notes, else notes will be deletedwithImages(\['directory' =&gt; ... , 'imagesWebPath' =&gt; ...\]parse with images, else images will be deletedstartParse()start parsinggetBook()return Book object---

### getBook()-&gt; ...

[](#getbook--)

BookdescgetAuthors()**return** array of Author objectsgetTranslators()**return** array of Translator objectsgetInfo()**return** BookInfo objectgetChapters()**return** array of Chapters objects---

### getAuthors()\[$key\]-&gt; ...

[](#getauthorskey--)

BookdescgetFirstName()**return** first name of the authorgetLastName()**return** last name of the authorgetFullName()**return** full name of the author---

### getTranslators()\[$key\]-&gt; ...

[](#gettranslatorskey--)

BookdescgetFirstName()**return** first name of the translatorgetMiddleName()**return** middle name of the translatorgetLastName()**return** last name of the translatorgetFullName()**return** full name of the translatorgetNickName()**return** nickname of the translatorgetEmail()**return** email of the translator---

### getInfo()-&gt; ...

[](#getinfo--)

BookdescgetTitle()**return** title of the bookgetAnnotation()**return** annotation of the bookgetGenres()**return** array of genres of the bookgetKeywords()**return** keywords of the bookgetLang()**return** array of lang of the book---

### getChapters()\[$key\]-&gt; ...

[](#getchapterskey--)

BookdescgetTitle()**return** title of the chaptergetContent()**return** content of the chapter

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~5 days

Total

3

Last Release

2896d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/133208792?v=4)[tizis](/maintainers/tizis)[@tiziS](https://github.com/tiziS)

---

Top Contributors

[![iooe](https://avatars.githubusercontent.com/u/16865573?v=4)](https://github.com/iooe "iooe (30 commits)")

---

Tags

fb2parserphpphpparserhtmlfb2FB2Parser

### Embed Badge

![Health badge](/badges/tizis-fb2-parser/health.svg)

```
[![Health](https://phpackages.com/badges/tizis-fb2-parser/health.svg)](https://phpackages.com/packages/tizis-fb2-parser)
```

###  Alternatives

[simplehtmldom/simplehtmldom

A fast, simple and reliable HTML document parser for PHP.

1891.3M15](/packages/simplehtmldom-simplehtmldom)[doctrine/rst-parser

PHP library to parse reStructuredText documents and generate HTML or LaTeX documents.

63243.1k13](/packages/doctrine-rst-parser)[ressio/pharse

Fastest PHP HTML Parser

8582.2k](/packages/ressio-pharse)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
