Download the PHP package megasteve19/editorjs without Composer

On this page you can find all versions of the php package megasteve19/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 editorjs

Please refer to new package.

EditorJS Extended

Hi, I was just building a back-end project, and a little EditorJS parser. It's ended up with a useful little library. It's my first package, so please be kind and give me feedback.


Installation

To install package via composer run:

Note: You should look the original package's README.md on GitHub

Basic usage

First of all use the EditorJS class:

Then you can create a new instance of the class:

As you can see It's constructor same as original EditorJS.

Collection CRUD

This package resolves around CRUD operations. Here's a example;

Or find a block by id and access some data of it:

Here's all functions that collection has:

You can find more about html templates at end of this file.

Block CRUD

If we have data to store, than we should use some crud methods right? Blocks crud almost same as collection's. Here's a example:

As you can see we're accesing data by dot notation. So I hope you get the point. Here's list of all methods that blocks has:

EdiorJS Class

This class is a wrapper for collection. It's a singleton with a few methods. Here's list of all methods;

About Templates

This package uses templates to render blocks. Collection needs a directory with templates. Structure of this directory is below;

You can name directory whatever you want, but it's important to name files by block type. So, if you want to use header template, you should name it header.php.

Templates uses PHP's default syantax and rendering happens inside block's toHTML() method. That means you can access all block's methods and data. Here's an example of image template;


Thanks for reading to the end. If you have any questions, please don't hesitate to contact me.


All versions of editorjs with dependencies

PHP Build Version
Package Version
Requires php Version ^8.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 megasteve19/editorjs contains the following files

Loading the files please wait ...