Skip to content
Laravel Blade extensions like $loop->odd/$loop->index in foreach, view blocks and partials, etc
PHP HTML Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
docs upd Nov 2, 2017
scripts
src add support for laravel 6.0 Sep 5, 2019
tests remove path helper call Oct 4, 2019
.editorconfig
.gitignore after remove ignore files Aug 15, 2018
.php_cs add jenkins, sonar, new phpcs, new phpunit etc Nov 2, 2017
.scrutinizer.yml 56 update Aug 15, 2018
.travis.yml
Jenkinsfile add jenkins, sonar, new phpcs, new phpunit etc Nov 2, 2017
LICENSE.md license rename Aug 13, 2015
README.md update readme for 7.3.0 tag Sep 5, 2019
build.xml 56 update Aug 15, 2018
composer.json add support for laravel 6.0 Sep 5, 2019
phpunit.xml helper logic improvement and added improved html minifier Aug 16, 2018
sonar-project.properties add jenkins, sonar, new phpcs, new phpunit etc Nov 2, 2017

README.md

Laravel logo Laravel Blade Extensions

Build Status GitHub Version Total Downloads License

A Laravel package providing additional Blade functionality.

Tested on all Laravel 5.x & 6.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

You can’t perform that action at this time.