2017 © Pedro Peláez
 

library blade-standalone

image

stackkit/blade-standalone

  • Friday, December 22, 2017
  • by buildcode
  • Repository
  • 0 Watchers
  • 0 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 25 % Grown

The README.md

Introduction

This package is a standalone version of Laravel Blade., (*1)

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., (*2)

Docs, (*3)

The Versions

22/12 2017

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

by Marick van Tuil

22/12 2017

1.0.1

1.0.1.0

  Sources   Download

MIT

The Requires

 

by Marick van Tuil

19/12 2017

1.0.0

1.0.0.0

  Sources   Download

MIT

The Requires

 

by Marick van Tuil