radic/blade-extensions

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

7.0.2 2017-03-20 05:06 UTC

README

Build Status GitHub Version Total Downloads License

A Laravel package providing additional Blade functionality.

Tested on all Laravel 5.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.0

Features

  • Compatible with all Laravel 5 versions
  • 20+ Configurable, 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)

Directives

All directives can be disabled, extended or replaced.

Installation

1. Composer

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

2. Laravel

Radic\BladeExtensions\BladeExtensionsServiceProvider::class

3. Console

php artisan publish --tag=config --provider="Radic\BladeExtensions\BladeExtensionsServiceProvider"

Contribute

Read the contribution guide

Copyright/License

Copyright 2015 Robin Radic - MIT Licensed