PHP code example of sikl0 / ejs-renderer
1. Go to this page and download the library: Download sikl0/ejs-renderer 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/ */
sikl0 / ejs-renderer example snippets
use Sikl0\EJSRenderer\EJSRenderer;
$renderer = new EJSRenderer($post->content); // string JSON or array
echo $renderer->html();
use Sikl0\EJSRenderer\EJSRenderer;
public function show(Post $post, EJSRenderer $renderer)
{
// ...
}
bash
php artisan vendor:publish --tag=ejs-renderer-css