PHP code example of orchestra / story
1. Go to this page and download the library: Download orchestra/story 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/ */
orchestra / story example snippets
use Orchestra\Story\Facades\StoryFormat;
StoryFormat::extend('bbcode', function () {
return new BBCodeParser();
});
class BBCodeParser extends Orchestra\Story\Parsers\Parser {}
Event::listen('orchestra.story.editor: bbcode', function () {
// Add asset
});