Download the PHP package radic/blade-extensions without Composer
On this page you can find all versions of the php package radic/blade-extensions. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download radic/blade-extensions
More information about radic/blade-extensions
Files in radic/blade-extensions
Package blade-extensions
Short Description Laravel package providing additional Blade extensions: foreach (with $loop data like twig), break, continue, set,array (multiline), etc
License MIT
Homepage https://github.com/RobinRadic/blade-extensions
Informations about the package blade-extensions
Laravel Blade Extensions
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
- Documentation
- Changelog
- Code of Conduct
- Contributing
- Pull Request Template
- Issue Template
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
2. Laravel
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
All versions of blade-extensions with dependencies
illuminate/filesystem Version ~5.0|~6.0|~7.0|~8.0
illuminate/contracts Version ~5.0|~6.0|~7.0|~8.0
illuminate/support Version ~5.0|~6.0|~7.0|~8.0
illuminate/view Version ~5.0|~6.0|~7.0|~8.0
composer/semver Version ~1.4