PHP code example of israel-nogueira / blade-x
1. Go to this page and download the library: Download israel-nogueira/blade-x 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/ */
israel-nogueira / blade-x example snippets
<?
e israelNogueira\bladex\BladeX;
$views = __DIR__ . '/views';
$cache = __DIR__ . '/cache';
$bladex = new BladeX($views, $cache);
echo $bladex->make('homepage', ['name' => 'John Doe'])->render();
echo $bladex->render('homepage', ['name' => 'John Doe']);
$bladex->directive('datetime', function ($expression) {
return " echo with({$expression})->format('F d, Y g:i a');