larso/view
最新稳定版本:v1.1
Composer 安装命令:
composer require larso/view
包简介
View class from Laravel Blade
README 文档
README
Install
composer require larso/view
Use
// index.php
use Larso\View\Blade;
require 'vendor/autoload.php';
$viewpath = __DIR__.'/views';
$cachepath = __DIR__.'/cache';
/**
* @var \Illuminate\Contracts\View\Factory
*/
$blade = new Blade($viewpath, $cachepath);
echo $blade->make('hello')->with('name', 'YourName')->render();
Use with Facade
// index.php
use Larso\View\Blade;
require 'vendor/autoload.php';
$viewpath = __DIR__.'/views';
$cachepath = __DIR__.'/cache';
new Blade($viewpath, $cachepath);
View::share('share', 'This value Share');
echo View::make('hello')->with('name', 'MY NAME');
统计信息
- 总下载量: 19
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-11-21