hazaarlabs / hazaar-parser
The Text Parser plugin for Hazaar MVC
1.1.1
2021-10-11 04:32 UTC
Requires
- php: >=7.0
- ext-pdo: *
- cebe/markdown: 1.2.*
- geshi/geshi: 1.0.9.*
- hazaarlabs/hazaar-mvc: >=2.5.0
- netcarver/textile: 3.6.*
README
Text parser plugin for Hazaar MVC
Installation
Composer
Install the [composer package] by running the following command:
composer require hazaarlabs/hazaar-parser
Example
Controller
class MyController extends \Hazaar\Controller\Action {
public function index(){
$this->view('test');
$this->view->addHelper('markdown');
}
}
View
<div>
<?=$this->markdown->parse("# Hello, World\n\nThis is a test.\n");
</div>