• Stars
    star
    268
  • Rank 153,144 (Top 4 %)
  • Language
    PHP
  • License
    MIT License
  • Created over 10 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Laravel Blade extensions like $loop->odd/$loop->index in foreach, view blocks and partials, etc

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 & 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

More Repositories

1

laraval

Laravel 5 jQuery Validation. Full client side, full AJAX, hybrid and other modes. Bootstrap and other frameworks supported.
TypeScript
12
star
2

php-build-tools

Shell
4
star
3

lfsbuild

Linux from scratch. Semi automated build procedure.
Shell
4
star
4

graphql-streams-api

A PyroCMS Module that provides an easy yet flexible way to bind your PyroCMS Streams to a GraphQL API.
PHP
4
star
5

CorsairK95LinuxDriver

Corsair Vengeance K95 Basic Driver for Linux based operating systems. Enables custom G keys macros and M1,M2,etc. Based on https://github.com/jupiter126/Linux_Custom_Control_Device
C#
3
star
6

netbeans-laravel4-blade

A work in progress to include syntax highlighting for Blade files in NetBeans (8.0)
Java
3
star
7

composer-exclude-classmap-plugin

Merges 'autoload.exclude-classmap' from vendor packages into the root composer at runtime. Useful for overriding php classes of other packages.
PHP
1
star
8

bootstrap-advanced-dropdowns

Advanced bootstrap dropdowns, multi-level, scrollable, icons, badges. css/scss only
JavaScript
1
star
9

docgen

Static documentation generator.
CSS
1
star
10

composer-merge-replace-plugin

Adds all package names that 'wikimedia/composer-merge-plugin' merged to the root composer 'replace' object, this allows you to require those packages in any package and/or root composer.
PHP
1
star
11

angular2-jspm-ts-systemjs

Angular 2 - Typescript - SystemJS - JSPM - Grunt example/test
JavaScript
1
star
12

swiftapi

An Apache Thrift based API for Sponge Minecraft servers. This API allows simple calls to Sponge methods over the internet using almost any programming language. If you're a programmer who wants to create a killer server admin app, this is the plugin for you!
Java
1
star