PHPackages                             devmcc/blade-extended - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. devmcc/blade-extended

ActiveLibrary[Templating &amp; Views](/categories/templating)

devmcc/blade-extended
=====================

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

1.1.1(7y ago)019MITPHP

Since Oct 21Pushed 7y agoCompare

[ Source](https://github.com/DevMcC/blade-extended)[ Packagist](https://packagist.org/packages/devmcc/blade-extended)[ RSS](/packages/devmcc-blade-extended/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)DependenciesVersions (2)Used By (0)

BladeExtended
=============

[](#bladeextended)

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

Installation
============

[](#installation)

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

```
composer require devmcc/blade-extended

```

ServiceProvider
---------------

[](#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
========

[](#contents)

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

@block
------

[](#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
------

[](#ifadd)

Echoes a string whether the condition is met.

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

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

```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2809d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/26748646?v=4)[DevMcC](/maintainers/DevMcC)[@DevMcC](https://github.com/DevMcC)

---

Top Contributors

[![DevMcC](https://avatars.githubusercontent.com/u/26748646?v=4)](https://github.com/DevMcC "DevMcC (1 commits)")

---

Tags

laravelbladedirective

### Embed Badge

![Health badge](/badges/devmcc-blade-extended/health.svg)

```
[![Health](https://phpackages.com/badges/devmcc-blade-extended/health.svg)](https://phpackages.com/packages/devmcc-blade-extended)
```

###  Alternatives

[spatie/laravel-blade-javascript

A Blade directive to export variables to JavaScript

623888.8k9](/packages/spatie-laravel-blade-javascript)[angus-mcritchie/blade-boost-directive

Lightning-Fast Blade Components with `@boost` Directive

3913.1k](/packages/angus-mcritchie-blade-boost-directive)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
