PHP code example of dakota / croogomark
1. Go to this page and download the library: Download dakota/croogomark 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/ */
dakota / croogomark example snippets
//Config/bootstrap.php
CakeEventManager::instance()->attach(function ($event) {
//Assuming that you've created the TwitterHandleParser in Lib/
App::uses('TwitterHandleParser', 'Lib');
$event->data['environment']->addInlineParser(new TwitterHandleParser());
}, 'Helper.Markdown.beforeMarkdownParse');