PHP code example of stackkit / blade-standalone
1. Go to this page and download the library: Download stackkit/blade-standalone 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/ */
stackkit / blade-standalone example snippets
use Stackkit\BladeStandalone\Blade;
Y_SEPARATOR . 'views',
__DIR__ . DIRECTORY_SEPARATOR . 'cache'
);
$contents = $blade->render('welcome', ['name' => 'John Doe']);
echo $contents;