laravel-blade

Use the Laravel's blade outside Laravel

  • 所有者: spatie/laravel-blade
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

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

主要指标

概览
名称与所有者spatie/laravel-blade
主编程语言PHP
编程语言PHP (语言数: 1)
平台
许可证MIT License
所有者活动
创建于2014-09-10 14:27:09
推送于2019-03-27 23:30:33
最后一次提交2019-03-28 00:30:32
发布数5
最新版本名称1.0.2 (发布于 )
第一版名称0.1.2 (发布于 )
用户参与
星数56
关注者数4
派生数10
提交数21
已启用问题?
问题数2
打开的问题数0
拉请求数1
打开的拉请求数0
关闭的拉请求数0
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?