Download the PHP package hosseinesteki/filament-editorjs without Composer

On this page you can find all versions of the php package hosseinesteki/filament-editorjs. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package filament-editorjs

Filament EditorJS

Latest Version on Packagist GitHub Tests Action Status Total Downloads

A premium EditorJS field for Filament with seamless Spatie Media Library integration and a robust rendering system.

Filament EditorJS brings the power of Editor.js to your Filament admin panel, allowing you to create rich, block-based content with ease. It handles image uploads out of the box using Livewire and Spatie's Media Library, and provides a powerful rendering engine to display your content on the frontend with Tailwind CSS support.

โœจ Features


๐Ÿš€ Installation

Install the package via composer:

Publish the configuration file:

๐Ÿšฅ Quick Start

1. Prepare your Model

Your model must implement Spatie's HasMedia interface and use the ModelHasEditorJsComponent trait provided by this package.

2. Register the Plugin (Optional but recommended for v4/v5)

Add the plugin to your Filament Panel provider (usually AdminPanelProvider.php):

3. Add to your Filament Resource

Simply use the EditorjsTextField in your form schema:

4. Render on the Frontend

Displaying your content is just as easy:

Note: For the best experience, ensure you have the @tailwindcss/typography plugin installed.


๐Ÿ› ๏ธ Dynamic Plugin System

This package allows you to customize the editor tools dynamically.

Adding Custom Tools

You can add any Editor.js compatible tool by registering it in Javascript and then enabling it in PHP.

1. Register in Javascript

Add your custom tool to the global window.filamentEditorJsTools registry:

2. Enable in PHP

Use the addPlugin method on your field:


๐ŸŽจ Customizing Content Rendering

You can extend the rendering engine by adding custom renderers for specific block types.

Creating a Custom Renderer

Registering your Renderer

Register it in your AppServiceProvider:


โš™๏ธ Configuration

The config/filament-editorjs.php file allows you to define different tool profiles:

Switch between profiles in your form:


๐Ÿ”„ Upgrading

Please refer to the Upgrade Guide when moving between major versions.

๐Ÿงช Testing

๐Ÿค Contributing

Contributions are welcome! Please see CONTRIBUTING.md for details.

๐Ÿ“œ License

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


All versions of filament-editorjs with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
filament/filament Version ^4.5|^5.0
filament/spatie-laravel-media-library-plugin Version ^v4.0|^5.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package hosseinesteki/filament-editorjs contains the following files

Loading the files please wait ...