laravel-blade

Use the Laravel's blade outside Laravel

  • Owner: spatie/laravel-blade
  • Platform:
  • License:: MIT License
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

THIS PACKAGE IS UNMAINTAINED

Use Laravel's blade outside Laravel

This package is a slightly modified version of 50onred/laravel-blade.

Latest Version on Packagist
Software License

Installation

composer require spatie/laravel-blade

Postcardware

You're free to use this package (it's MIT-licensed), but if it makes it to your production environment you are required to send us a postcard from your hometown, mentioning which of our package(s) you are using.

Our address is: Spatie, Samberstraat 69D, 2060 Antwerp, Belgium.

The best postcards will get published on the open source page on our website.

Usage

<?php

/*, --------------------------------------------------------------------------, Register The Auto Loader, --------------------------------------------------------------------------, Composer provides a convenient, automatically generated class loader, for our application. We just need to utilize it! We'll require it, into the script here so that we do not have to worry about the, loading of any our classes "manually". Feels great to relax., */

require 'vendor/autoload.php';

use Spatie\Blade\Blade;

$views = __DIR__ . '/views';
$cache = __DIR__ . '/cache';

$blade = new Blade($views, $cache);
echo $blade->view()->make('hello');

You can use all blade features as described in the Laravel 4 documentation:
http://laravel.com/docs/templates#blade-templating

Main metrics

Overview
Name With Ownerspatie/laravel-blade
Primary LanguagePHP
Program languagePHP (Language Count: 1)
Platform
License:MIT License
所有者活动
Created At2014-09-10 14:27:09
Pushed At2019-03-27 23:30:33
Last Commit At2019-03-28 00:30:32
Release Count5
Last Release Name1.0.2 (Posted on )
First Release Name0.1.2 (Posted on )
用户参与
Stargazers Count56
Watchers Count4
Fork Count10
Commits Count21
Has Issues Enabled
Issues Count2
Issue Open Count0
Pull Requests Count1
Pull Requests Open Count0
Pull Requests Close Count0
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private