Download the PHP package darylseven/editorjs-bundle without Composer

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

EditorjsBundle

Symfony bundle that integrates Editor.js primarily with Symfony Forms.

Installation

Symfony

  1. Download the package with composer: $ composer require tbmatuka/editorjs-bundle
  2. Add the bundle to bundles.php if it wasn't added automatically: Tbmatuka\EditorjsBundle\TbmatukaEditorjsBundle::class => ['all' => true],
  3. Copy the example package config file (examples/ediotrjs.yaml) or use it as an example to create your own configuration.
  4. Add the form theme to your twig configuration:

JavaScript

There is an example of the JS implementation in examples/editorjs-init.js.

Encore/webpack

If you're using Encore, you will need to install the npm package for Editor.js (@editorjs/editorjs) and any plugins that you want to use. Copy the example to your assets dir, add the plugin classes to the array and import the file from your main JS file.

Inline

Configuration options and examples will have to be added for other loading methods (like loading JS from the CDN or a local path inline in the widget), but they're not there for now.

Usage

Symfony Forms

You can use the EditorjsType in your forms to get Editor.js on the frontend. Data (decoded json) is returned as an array.

Twig

You can get an Editor.js config directly from the Twig extension. Check the form widget in src/Resources/views/Form/editorjs_widget.html.twig to see how to use it. The editorjs() Twig function accepts either a configuration object or just the name of a configuration that you want to use.

Contributing

Any kind of help is welcome, but especially information about the included JS not working in specific browsers. Please open an issue to discuss whatever you want to work on before you submit a pull request and avoid any kind of BC breaking changes unless they are agreed to in the issue discussion.


All versions of editorjs-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
ext-json Version *
symfony/config Version 6.3.*
symfony/dependency-injection Version 6.3.*
symfony/form Version 6.3.*
symfony/framework-bundle Version 6.3.*
symfony/http-foundation Version 6.3.*
symfony/http-kernel Version 6.3.*
symfony/options-resolver Version 6.3.*
symfony/property-access Version 6.3.*
symfony/routing Version 6.3.*
symfony/twig-bundle Version 6.3.*
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 darylseven/editorjs-bundle contains the following files

Loading the files please wait ....