PHPackages                             muhammadsiyab/editorjs-parser-php - 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. muhammadsiyab/editorjs-parser-php

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

muhammadsiyab/editorjs-parser-php
=================================

PHP parser for editorjs library

v1.0.1(2y ago)4598↓33.3%MITPHPPHP &gt;=7.4

Since Apr 1Pushed 2y ago1 watchersCompare

[ Source](https://github.com/MUHAMMADSiyab/editorjs-parser-php)[ Packagist](https://packagist.org/packages/muhammadsiyab/editorjs-parser-php)[ RSS](/packages/muhammadsiyab-editorjs-parser-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (4)Used By (0)

Editor.js Parser for PHP
------------------------

[](#editorjs-parser-for-php)

This package allows you to easily parse [Editor.js](https://editorjs.io/) JSON output to HTML using PHP. This package is currently able to parse the blocks from these plugins:

- [Paragraph](https://github.com/editor-js/paragraph)
- [Header](https://github.com/editor-js/header)
- [Image](https://github.com/editor-js/image)
- [Quote](https://github.com/editor-js/quote)
- [List](https://github.com/editor-js/list)
- [Nested List](https://github.com/editor-js/nested-list)
- [Code](https://github.com/editor-js/code)
- [Embed](https://github.com/editor-js/embed) *(Currently, the following embed blocks are supported)*
    - Youtube
    - Facebook
    - Twitter/X
    - Instagram
    - Codepen
    - Github (gist)

Requirements
------------

[](#requirements)

PHP `>=7.4`

Installation
------------

[](#installation)

```
composer require muhammadsiyab/editorjs-parser-php

```

Using
-----

[](#using)

```
require "vendor/autoload.php";

use MuhammadSiyab\EditorjsParserPhp\Parser;

# The json output generated by Editor.js
$content = '{"time": 1711232666978,"blocks": [{...}]}' ;

$parser = new Parser();
$parsed = $parser->parse($content);

echo $parsed; // outputs the generated HTML
```

### Allow only specific blocks for parsing

[](#allow-only-specific-blocks-for-parsing)

```
# Only parses the `headings` and `paragraphs`

$parsed = $parser
            ->only('header', 'paragraph') // can be parsed using the array syntax ['header', 'paragraph']
            ->parse($content);
```

### Disable specific blocks from being parsed

[](#disable-specific-blocks-from-being-parsed)

```
# Parses all the blocks except `list` and `code`

$parsed = $parser
            ->except('list', 'code') // can be parsed using the array syntax ['list', 'code']
            ->parse($content);
```

### License

[](#license)

This Package is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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

Total

2

Last Release

777d ago

PHP version history (2 changes)v1.0.0PHP ^7.4

v1.0.1PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/aee481813a7aa671f7b7492ede7aa6b2eba46964ca8e220b5a50fb7dd226c523?d=identicon)[MUHAMMADSiyab](/maintainers/MUHAMMADSiyab)

---

Top Contributors

[![MUHAMMADSiyab](https://avatars.githubusercontent.com/u/39950367?v=4)](https://github.com/MUHAMMADSiyab "MUHAMMADSiyab (15 commits)")

---

Tags

editorjsparserphpphpparserhtmleditorjs

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/muhammadsiyab-editorjs-parser-php/health.svg)

```
[![Health](https://phpackages.com/badges/muhammadsiyab-editorjs-parser-php/health.svg)](https://phpackages.com/packages/muhammadsiyab-editorjs-parser-php)
```

###  Alternatives

[simplehtmldom/simplehtmldom

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

1921.3M14](/packages/simplehtmldom-simplehtmldom)[ressio/pharse

Fastest PHP HTML Parser

8478.4k](/packages/ressio-pharse)[corveda/php-sandbox

A PHP library that can be used to run PHP code in a sandboxed environment

23483.5k2](/packages/corveda-php-sandbox)

PHPackages © 2026

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