PHPackages                             tommyknocker/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. tommyknocker/fb2-parser

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

tommyknocker/fb2-parser
=======================

Simple FB2 to HTML parser

v0.5.6(7y ago)1291MITPHPPHP &gt;=7.0.0

Since Jul 9Pushed 7y ago1 watchersCompare

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

READMEChangelogDependencies (5)Versions (5)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 tommyknocker/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 objectsgetCover()**return** Book cover image---

### 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 bookgetPublisher()**return** Publisher of the bookgetYear()**return** year when book was published---

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

[](#getchapterskey--)

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

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

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 ~67 days

Total

4

Last Release

2711d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7640707?v=4)[Vasiliy Krivoplyas](/maintainers/tommyknocker)[@tommyknocker](https://github.com/tommyknocker)

---

Top Contributors

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

---

Tags

phpparserhtmlfb2FB2Parser

### Embed Badge

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

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

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k543.5M2.5k](/packages/aws-aws-sdk-php)[simplehtmldom/simplehtmldom

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

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

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

63248.8k15](/packages/doctrine-rst-parser)[ressio/pharse

Fastest PHP HTML Parser

8684.0k](/packages/ressio-pharse)[symfony/json-streamer

Provides powerful methods to read/write data structures from/into JSON streams.

18639.6k31](/packages/symfony-json-streamer)

PHPackages © 2026

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