New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

devmcc/blade-extended

Expands the blade functionality of the Laravel framework with additional directives.
19

Larablocks Analysis

devmcc/blade-extended works with any PHP project: the latest release (1.1.1, Oct 21, 2018) doesn't depend on Laravel.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • No release in the last 12 months (last: Oct 21, 2018)
  • 0 downloads a month (needs 10,000)
  • 0 GitHub stars (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: Oct 21, 2018.
  • No releases in the last 12 months.
  • First released: Oct 21, 2018.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Dec 3, 2026.

Install
composer require devmcc/blade-extended
Latest Version:1.1.1
License:MIT
Last Updated:Oct 21, 2018
Links: GitHub  ·  Packagist
Maintainer: DevMcC

BladeExtended

Expands the blade functionality of the Laravel framework with additional directives.

Installation

Install this package with the following command from the root directory of your project:

composer require devmcc/blade-extended

ServiceProvider

After you have required this package and updated composer, add the ServiceProvider to the providers array in app/config.php

DevMcC\BladeExtended\ServiceProvider::class,

Contents

The following is a list of directives that this package adds to blade.

@block

If your project doesn't permit the use of the else statement and it's a struggle to do this with blade without writing some else-in-disguise or some hacky ternary with includes, then the @block directive might come in handy.
With this directive, you can define codeblocks, the contents of this block will simply work like everything else, with one exception and that is that you can kill this block with a @break.

@block
    @if ($results->isEmpty())
        No results!
        @break
    @endif

    // Showing all results
@endblock

@ifadd

Echoes a string whether the condition is met.

@ifadd($iNeedToEcho, 'sanitized output (")')

@ifadd($iNeedToEcho, 'unsanitized output (")', false)

Related Packages

yamadashy/laravel-blade-minify-directive

@minify directive to partially compress HTML.

1,437 7
balping/laravel-blade-function

This Laravel 5.1+ package lets you declare functions inside blade templates.

10,879 21
pskordilakis/blade-class-directive

Laravel blade class directive

1,158 4
spatie/laravel-blade-javascript

A Blade directive to export variables to JavaScript

1,047,795 618
mindtwo/laravel-blade-spaceless

Blade @spaceless directive that strips whitespace between HTML tags at render ti...

39,874 2

Version History

Version Released License
1.1.1 MIT