New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

alaminfirdows/laravel-editorjs

A simple editor.js html parser for Laravel
24,405 49
Install
composer require alaminfirdows/laravel-editorjs
Latest Version:v2.4.0
PHP:^8.1|^8.2|^8.3|^8.4
Laravel:8 – 13
Older releases:6 · 7
License:MIT
Last Updated:Mar 24, 2026
Links: GitHub  ·  Packagist
Maintainer: alaminfirdows

image

Laravel-Editor.js

A simple editor.js html parser for Laravel

Latest Version on Packagist Total Downloads

Features

  • Render Editor.js output
  • Custom block rendering

Demo

You can can play with the demo here

Installation

You can install the package via composer:

composer require alaminfirdows/laravel-editorjs

You can publish the config file with:

php artisan vendor:publish --tag="laravel_editorjs-config"

Optionally, you can publish the views using

php artisan vendor:publish --tag="laravel_editorjs-views"

Usage

Blade Directive

@editorJsRender($posts->body)

Facade

use App\Models\Post;

$post = Post::find(1);
echo LaravelEditorJs::render($post->body);

Defining An Accessor

<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use AlAminFirdows\LaravelEditorJs\Facades\LaravelEditorJs;

class Post extends Model
{
    public function getBodyAttribute()
    {
        return LaravelEditorJs::render($this->attributes['body']);
    }
}

$post = Post::find(1);
echo $post->body;

Versioning

Laravel Version Package Version
10.x, 11.x, 12.x ✅ 2.x
9.x ✅ 1.1
8.x ✅ 1.0

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

665,354,487 9,703
laravel/framework

The Laravel Framework.

625,568,548 34,998
laravel/tinker

Powerful REPL for the Laravel framework.

539,265,140 7,441
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

458,029,405 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

424,642,029 4,662

Version History

Version Released PHP Laravel License
v2.4.0 ^8.1|^8.2|^8.3|^8.4 ^8.0|^9.0|^10.0|^11.0|^12.0|^13.0 MIT
v2.3.0 ^7.3|^8.1|^8.2|^8.3 ^8.0|^9.0|^10.0|^11.0|^12.0 MIT
v2.2.0 ^7.2|^8.1|^8.2 ^8.0|^9.0|^10.0|^11.0 MIT
v2.1.0 ^7.2|^8.1|^8.2 ^8.0|^9.0|^10.0|^11.0 MIT
v2.0.0 ^7.2|^8.1 ^8.0|^9.0|^10.0 MIT