PHP code example of chr15k / laravel-blade

1. Go to this page and download the library: Download chr15k/laravel-blade 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/ */

    

chr15k / laravel-blade example snippets


use Chr15k\Blade\Blade;

$views = 'views'; // Directory containing your blade files
$cache = 'cache'; // Directory for cached views

$blade = new Blade($views, $cache);

// views/test.blade.php
echo $blade
    ->view()
    ->make('test', ['foo' => 'bar']);