PHPackages                             nhujanen/editorphp - 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. [Templating &amp; Views](/categories/templating)
4. /
5. nhujanen/editorphp

ActiveLibrary[Templating &amp; Views](/categories/templating)

nhujanen/editorphp
==================

PHP renderer for EditorJS

0.0.4(7y ago)0141MITPHPPHP ^7.0

Since May 6Pushed 7y ago2 watchersCompare

[ Source](https://github.com/wex/EditorPHP)[ Packagist](https://packagist.org/packages/nhujanen/editorphp)[ RSS](/packages/nhujanen-editorphp/feed)WikiDiscussions master Synced 3mo ago

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

EditorPHP
=========

[](#editorphp)

PHP renderer for EditorJS

Requirements
============

[](#requirements)

PHP 7.x

Usage
=====

[](#usage)

```
require_once 'vendor/autoload.php';

$editor = new EditorPHP('test.html', 'editor-me', true);

echo $editor->render([
    'time'      => 1550476186479,
    'version'   => '1.8.2',
    'blocks'    => [
        [
            'type' => 'header',
            'data' => [
                'text' => 'Testing header',
                'level' => 2,
            ],
        ],
    ],
]);
```

Register custom renderers
=========================

[](#register-custom-renderers)

```
require_once 'vendor/autoload.php';

class Fooler extends Block
{
    public function generate(array $data = []): \DOMElement
    {
        return $this->document->createElement('strong', 'FOO FAA SNG');
    }
}

$editor = new EditorPHP('test.html', 'editor-me', true);
$editor->registerRenderer('foo', Fooler::class);

echo $editor->render([
    'time'      => 1550476186479,
    'version'   => '1.8.2',
    'blocks'    => [
        [
            'type' => 'foo',
            'data' => [],
        ],
    ],
]);
```

License
=======

[](#license)

MIT

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

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

4

Last Release

2612d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/49327294?v=4)[vvex](/maintainers/vvex)[@VVex](https://github.com/VVex)

---

Top Contributors

[![wex](https://avatars.githubusercontent.com/u/180108?v=4)](https://github.com/wex "wex (9 commits)")

### Embed Badge

![Health badge](/badges/nhujanen-editorphp/health.svg)

```
[![Health](https://phpackages.com/badges/nhujanen-editorphp/health.svg)](https://phpackages.com/packages/nhujanen-editorphp)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k532.1M19.5k](/packages/laravel-framework)[cakephp/cakephp

The CakePHP framework

8.8k19.1M1.7k](/packages/cakephp-cakephp)[moonshine/moonshine

Laravel administration panel

1.3k239.9k76](/packages/moonshine-moonshine)[illuminate/contracts

The Illuminate Contracts package.

706127.7M12.7k](/packages/illuminate-contracts)[algolia/algoliasearch-client-php

API powering the features of Algolia.

69734.4M145](/packages/algolia-algoliasearch-client-php)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751284.3k37](/packages/civicrm-civicrm-core)

PHPackages © 2026

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