radic/blade-extensions 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

radic/blade-extensions

最新稳定版本:7.4.0

Composer 安装命令:

composer require radic/blade-extensions

包简介

Laravel package providing additional Blade extensions: foreach (with $loop data like twig), break, continue, set,array (multiline), etc

README 文档

README

Build Status GitHub Version Total Downloads License

A Laravel package providing additional Blade functionality.

Tested on all Laravel 5.x & 6.x & 7.x versions.

The package follows the FIG standards PSR-1, PSR-2, and PSR-4 to ensure a high level of interoperability between shared PHP code.

Version 7.3

Features

  • Compatible with all Laravel 5 & 6 versions
  • 20+ Configurable, nameable, extendable, replaceable, testable directives.
  • Compile Blade strings with variables BladeExtensions::compileString($string, array $vars = [])
  • Progamatically push content to a stack inside blade view(s) BladeExtensions::pushToStack($stack, $views, $content)
  • Even if you don't use any of the directives, Blade Extensions provides you with a great method to manage your directives.

Directives

All directives can be disabled, extended or replaced.

Installation

1. Composer

"radic/blade-extensions": "~7.1"

2. Laravel

Radic\BladeExtensions\BladeExtensionsServiceProvider::class

3.Configuration

The first version of this package was created for Laravel 4.2. In the later releases Laravel introduced quite a few similar directives/functionality like the foreach loop variable, Components & Slots, etc. This package automaticly disables some directives depending on your Laravel version. The configuration file allows you to fully configure this behaviour. Make sure to check it out.

Copyright/License

Copyright 2015 Robin Radic - MIT Licensed

统计信息

  • 总下载量: 320.04k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 272
  • 点击次数: 1
  • 依赖项目数: 9
  • 推荐数: 0

GitHub 信息

  • Stars: 266
  • Watchers: 16
  • Forks: 36
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-07-08