1. Go to this page and download the library: Download lexdubyna/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/ */
lexdubyna / blade example snippets
use Lexdubyna\Blade\Blade;
$blade = new Blade('views', 'cache');
echo $blade->make('homepage', ['name' => 'John Doe'])->render();
namespace App\View\Components;
use Lexdubyna\Blade\ViewComponent;
class Alert extends ViewComponent
{
// all the public properties will be exposed inside the template
public string $type;
public string $message;
protected string $template = 'components.alert'; // $template is
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.