承接 digivo/laravel-string-blade-compiler 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

digivo/laravel-string-blade-compiler

最新稳定版本:1.3.1

Composer 安装命令:

composer require digivo/laravel-string-blade-compiler

包简介

Render Blade templates from a string

README 文档

README

Originally forked from Flynsarmy/laravel-db-blade-compiler

Render Blade templates from a string

This package generates and returns a compiled view from a provided string

Installation (Laravel 5.x)

Require this package in your composer.json and run composer update (or run composer require digivo/laravel-string-blade-compiler:1.* directly):

"digivo/laravel-string-blade-compiler": "1.*"

After updating composer, add the ServiceProvider to the providers array in app/config/app.php

'Digivo\StringBladeCompiler\StringBladeCompilerServiceProvider',

and the Facade to the aliases array in the same file

'StringView'          => 'Digivo\StringBladeCompiler\Facades\DigivoView',

You have to also publish the config-file

php artisan vendor:publish

Usage

This package offers a StringView facade with the same syntax as View but accepts a string instead of path to view.

return StringView::make('@if ($foo == "Bar") foo is Bar @else foo is not Bar @endif')->with(['foo' => 'Bar'])->render();

License

laravel-string-blade-compiler is open-sourced software licensed under the MIT license

统计信息

  • 总下载量: 15.05k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 5
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 8
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-05-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固