1. Go to this page and download the library: Download lanre/jsrunner 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/ */
lanre / jsrunner example snippets
use Lame\JSRunner\Renderer;
use Lame\JSRunner\V8Engine as V8;
$engine = new V8();
$renderer = new Renderer($engine);
echo $renderer
->entry(__DIR__.'/../../public/js/app-server.js')
->render();
// <div>My server rendered app!</div>