stackkit/blade-standalone

135 5
Install
composer require stackkit/blade-standalone
Latest Version:7.5
Laravel:7
Older releases:5
License:MIT
Last Updated:Apr 9, 2020
Links: GitHub  ·  Packagist
Maintainer: stackkit

Introduction

This package is a standalone version of Laravel Blade.

Usage standalone blade

<?php

use Stackkit\BladeStandalone\Blade;

require 'vendor/autoload.php';

$blade = new Blade(
    __DIR__ . DIRECTORY_SEPARATOR . 'views',
    __DIR__ . DIRECTORY_SEPARATOR . 'cache'
);

$contents = $blade->render('welcome', ['name' => 'John Doe']);

echo $contents;

Docs

Blade is the simple, yet powerful templating engine provided with Laravel. Unlike other popular PHP templating engines, Blade does not restrict you from using plain PHP code in your views. In fact, all Blade views are compiled into plain PHP code and cached until they are modified, meaning Blade adds essentially zero overhead to your application. Blade view files use the .blade.php file extension and are typically stored in the resources/views directory.

Docs

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

644,549,754 9,698
laravel/framework

The Laravel Framework.

598,760,099 34,966
laravel/tinker

Powerful REPL for the Laravel framework.

507,193,856 7,441
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

423,477,751 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

399,241,428 4,660

Version History

Version Released Laravel License
7.5 ^7.5 MIT
5.8.27 ^5.8.27 MIT
1.2.0 ^5.8.9 MIT
1.1.0 ^5.7.9 MIT
1.0.1 ^5.5.17 MIT