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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?