radic/blade-extensions
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
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.
- @set / @unset Setting and unsetting of values
- @breakpoint / @dump Dump values to screen and set breakpoints in views
- @foreach / @break / @continue Loop data and extras (similair to twig
$loop) - @embed Think of embed as combining the behaviour of include and extends. (similair to twig
embed) - @minify / @endminify Minify inline code. Supports CSS, JS and HTML.
- @macro / @endmacro/ @macrodef Defining and running macros
- @markdown/ @endmarkdown
- @spaceless / @endspaceless
- and more...
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
radic/blade-extensions 适用场景与选型建议
radic/blade-extensions 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 323.05k 次下载、GitHub Stars 达 265, 最近一次更新时间为 2014 年 07 月 08 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「extensions」 「laravel」 「loop」 「blade」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 radic/blade-extensions 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 radic/blade-extensions 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 radic/blade-extensions 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A collection of helpers for PHPUnit to ease testing Tarantool libraries.
Lightweight library that provides regular PHP methods is a non-blocking implementation.
Iteration tools for PHP
Register more Twig filters for your OctoberCMS templates
Bundle for Doctrine enumerations extension for Postgres
Doctrine extension to manage enumerations in PostgreSQL
统计信息
- 总下载量: 323.05k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 271
- 点击次数: 36
- 依赖项目数: 9
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-07-08