PHPackages                             syntaxphoenix/editorjs-symfony-parser-bundle - 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. syntaxphoenix/editorjs-symfony-parser-bundle

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

syntaxphoenix/editorjs-symfony-parser-bundle
============================================

A parser-bundle for editorjs and symfony

0.1.0(3y ago)215.3k—6%7[3 PRs](https://github.com/SyntaxPhoenix/editorjs-symfony-parser-bundle/pulls)PHPCI passing

Since Apr 10Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/SyntaxPhoenix/editorjs-symfony-parser-bundle)[ Packagist](https://packagist.org/packages/syntaxphoenix/editorjs-symfony-parser-bundle)[ RSS](/packages/syntaxphoenix-editorjs-symfony-parser-bundle/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (5)Versions (16)Used By (0)

[![Contributors](https://camo.githubusercontent.com/5b7577f7ae8ca078bd29640484cbd70a59db958ea7387d2d0117918f02d122b2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6e7472696275746f72732f53796e74617850686f656e69782f656469746f726a732d73796d666f6e792d7061727365722d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://github.com/SyntaxPhoenix/editorjs-symfony-parser-bundle/graphs/contributors)[![Stargazers](https://camo.githubusercontent.com/ab18aed6f9f1b654fa6e7794d82fbcb11cf054458317ada811f0b577e3e8880a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f53796e74617850686f656e69782f656469746f726a732d73796d666f6e792d7061727365722d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://github.com/SyntaxPhoenix/editorjs-symfony-parser-bundle/stargazers)[![Issues](https://camo.githubusercontent.com/634260484f0a0cde1f8ec1a16b19feff997eaa15d3da6f80375ebcc3515a9227/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f53796e74617850686f656e69782f656469746f726a732d73796d666f6e792d7061727365722d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://github.com/SyntaxPhoenix/editorjs-symfony-parser-bundle/issues)[![GPLv3 License](https://camo.githubusercontent.com/829c26aa8b202d567203f280b9b1d5229bbfa39a4e4d55e893b364e829b8034f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d47504c76332d626c75652e7376673f7374796c653d666c61742d737175617265)](https://www.gnu.org/licenses/gpl-3.0)

 [ ![Logo](https://camo.githubusercontent.com/17b251bca3dbc91525b38f3b9f83f1493cd654fe13c628fc882c0a4d22abd46f/68747470733a2f2f63646e2e73796e74617870686f656e69782e636f6d2f696d616765732f6c6f676f2e706e67) ](https://github.com/SyntaxPhoenix/editorjs-symfony-parser-bundle)

### EditorJS Symfony Parser Bundle

[](#editorjs-symfony-parser-bundle)

 Table of Contents
-----------------

[](#table-of-contents)

1. [About The Project](#about-the-project)
    - [Built With](#built-with)
2. [Usage](#usage)
    - [Installation](#installation)
    - [Supported plugins](#supported-plugins)
    - [Methods](#methods)
3. [Roadmap](#roadmap)
4. [Contributing](#contributing)
5. [License](#license)
6. [Contact](#contact)

About The Project
-----------------

[](#about-the-project)

The EditorJS-ParserBundle parses editorjs-configs [Editor.js](https://editorjs.io/ "Editor.js Homepage"). It is designed to be best integrated in Symfony and also offers a Twig-Extension. The bundle is based on [Durlecode/editorjs-simple-html-parser](https://github.com/Durlecode/editorjs-simple-html-parser), but strongly improved the parsing by using an object-oriented approach.

### Built With

[](#built-with)

- [editorjs-simple-html-parser](https://github.com/Durlecode/editorjs-simple-html-parser)

Usage
-----

[](#usage)

```
use SyntaxPhoenix\EJSParserBundle\Parser\EditorjsParser;

$parser = new EditorjsParser($data);
$html = $parser->toHtml();
```

Where `$data` is the clean JSON data coming from Editor.js *See `$data` example below*

```
{
    "time" : 1583848289745,
    "blocks" : [
        {
            "type" : "header",
            "data" : {
                "text" : "Hello World",
                "level" : 2
            }
        }
    ],
    "version" : "2.16.1"
}
```

### Installation

[](#installation)

```
composer require syntaxphoenix/editorjs-symfony-parser-bundle

```

Supported Plugins
-----------------

[](#supported-plugins)

PackageKeyMain CSS Class[@editorjs/code](https://github.com/editor-js/code)`code``.prs-code`[@editorjs/embed](https://github.com/editor-js/embed)`embed``.prs-embed`[@editorjs/delimiter](https://github.com/editor-js/delimiter)`delimiter``.prs-delimiter`[@editorjs/header](https://github.com/editor-js/header)`header``.prs-h{header-level}`[@editorjs/link](https://github.com/editor-js/link)`link``.prs-link`[@editorjs/list](https://github.com/editor-js/list)`list``.prs-list`[@editorjs/paragraph](https://github.com/editor-js/paragraph)`paragraph``.prs-paragraph`[@editorjs/raw](https://github.com/editor-js/raw)`raw`[@editorjs/simple-image](https://github.com/editor-js/simple-image)`simpleImage``.prs-image`[@editorjs/image](https://github.com/editor-js/image)`image``.prs-image`[@editorjs/warning](https://github.com/editor-js/warning)`warning``.prs-warning`[@editorjs/table](https://github.com/editor-js/table)`table``.prs-table`[editorjs-alert](https://github.com/vishaltelangre/editorjs-alert)`alert``.prs-alert` + `.prs-alert-{type}`[editorjs-youtube-embed](https://github.com/yuanwei92/editorjs-youtube-embed)`youtubeembed``.prs-youtubeembed`If you want to add a new Parser for a specific editorjs-plugin you can fork the master and make a pull-request. Please also change the readme in that case and add the parser you have edited.

Methods
-------

[](#methods)

#### `toHtml()`

[](#tohtml)

Return generated HTML

### Generated HTML

[](#generated-html)

##### Code

[](#code)

```

```

##### Embed

[](#embed)

###### *(Actually working with Youtube, Codepen &amp; Gfycat)*

[](#actually-working-with-youtube-codepen--gfycat)

```

```

##### Delimiter

[](#delimiter)

```

```

##### Header

[](#header)

```
Lorem
```

##### Link

[](#link)

```

        Title
        Description
        https://example.com/

```

##### Ordered List

[](#ordered-list)

```

```

##### Unordered List

[](#unordered-list)

```

```

##### Paragraph

[](#paragraph)

```

    Pellentesque
    malesuada fames
    tempus

```

##### Image

[](#image)

```

```

##### Warning

[](#warning)

```

        Title
        Message

```

##### Raw

[](#raw)

```

    Raw HTML ...

```

##### Alert

[](#alert)

```

 My Text

```

Roadmap
-------

[](#roadmap)

See the [open issues](https://github.com/SyntaxPhoenix/editorjs-symfony-parser-bundle/issues) for a list of proposed features (and known issues).

Contributing
------------

[](#contributing)

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**.

1. Fork the Project
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the Branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request

License
-------

[](#license)

Distributed under the GPLv3 License. See `LICENSE` for more information.

Contact
-------

[](#contact)

[@SyntaxPhoenix](https://twitter.com/SyntaxPhoenix) -

Project Link:

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance56

Moderate activity, may be stable

Popularity33

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 54% 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 ~53 days

Recently: every ~128 days

Total

13

Last Release

1269d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/403b64fd31db600e85fbb20c4ee02cee268727080568338a5ddcf68a161e033f?d=identicon)[SyntaxPhoenix](/maintainers/SyntaxPhoenix)

---

Top Contributors

[![YellowPhoenix18](https://avatars.githubusercontent.com/u/9165159?v=4)](https://github.com/YellowPhoenix18 "YellowPhoenix18 (27 commits)")[![meCodeBot](https://avatars.githubusercontent.com/u/36118013?v=4)](https://github.com/meCodeBot "meCodeBot (11 commits)")[![smosmochatton](https://avatars.githubusercontent.com/u/22613134?v=4)](https://github.com/smosmochatton "smosmochatton (6 commits)")[![Durlecode](https://avatars.githubusercontent.com/u/34769127?v=4)](https://github.com/Durlecode "Durlecode (3 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")[![nicodemuz](https://avatars.githubusercontent.com/u/1620454?v=4)](https://github.com/nicodemuz "nicodemuz (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/syntaxphoenix-editorjs-symfony-parser-bundle/health.svg)

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

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[oro/platform

Business Application Platform (BAP)

645143.5k115](/packages/oro-platform)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

21866.0M1.7k](/packages/drupal-core)[shopware/storefront

Storefront for Shopware

684.6M236](/packages/shopware-storefront)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M574](/packages/shopware-core)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9421.6k61](/packages/open-dxp-opendxp)

PHPackages © 2026

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