PHP code example of taylanunutmaz / editorjs-php
1. Go to this page and download the library: Download taylanunutmaz/editorjs-php library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
taylanunutmaz / editorjs-php example snippets
use \EditorJS\EditorJS;
try {
// Initialize Editor backend and validate structure
$editor = new EditorJS( $data, $configuration );
// Get sanitized blocks (according to the rules from configuration)
$blocks = $editor->getBlocks();
} catch (\EditorJSException $e) {
// process exception
}
composer