https://github.com/alaminfirdows/laravel-editorjs
A simple editor.js html parser for Laravel
https://github.com/alaminfirdows/laravel-editorjs
editor editorjs editorjs-tool eloquent hacktoberfest laravel laravel-package parser
Last synced: over 1 year ago
JSON representation
A simple editor.js html parser for Laravel
- Host: GitHub
- URL: https://github.com/alaminfirdows/laravel-editorjs
- Owner: alaminfirdows
- License: mit
- Created: 2021-09-21T05:37:49.000Z (almost 5 years ago)
- Default Branch: 2.x
- Last Pushed: 2024-10-22T06:40:41.000Z (over 1 year ago)
- Last Synced: 2025-03-29T05:05:42.413Z (over 1 year ago)
- Topics: editor, editorjs, editorjs-tool, eloquent, hacktoberfest, laravel, laravel-package, parser
- Language: PHP
- Homepage: https://packagist.org/packages/alaminfirdows/laravel-editorjs
- Size: 47.9 KB
- Stars: 40
- Watchers: 5
- Forks: 17
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README

# Laravel-Editor.js
A simple editor.js html parser for Laravel
[](https://packagist.org/packages/alaminfirdows/laravel-editorjs)
[](https://packagist.org/packages/alaminfirdows/laravel-editorjs)
## Features
- Render Editor.js output
- Custom block rendering
## Demo
You can can play with the demo [here](https://github.com/alaminfirdows/laravel-editorjs-demo)
## Installation
You can install the package via composer:
```bash
composer require alaminfirdows/laravel-editorjs
```
You can publish the config file with:
```bash
php artisan vendor:publish --tag="laravel_editorjs-config"
```
Optionally, you can publish the views using
```bash
php artisan vendor:publish --tag="laravel_editorjs-views"
```
## Usage
```php
use App\Models\Post;
$post = Post::find(1);
echo LaravelEditorJs::render($post->body);
```
Defining An Accessor
```php
attributes['body']);
}
}
$post = Post::find(1);
echo $post->body;
```
## Versioning
| Laravel | Supported |
| ---------- | --------- |
| 10.x, 11.x | ✅ 2.x |
| 9.x | ✅ 1.1 |
| 8.x | ✅ 1.0 |
## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
## Credits
- [Al-Amin Firdows](https://github.com/alaminfirdows)
- [All Contributors](../../contributors)
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.