PHPackages                             cyber-duck/blade-extensions - 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. cyber-duck/blade-extensions

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

cyber-duck/blade-extensions
===========================

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

8.0.2(5y ago)2481MITPHPPHP &gt;=5.5.9

Since Sep 18Pushed 5y agoCompare

[ Source](https://github.com/Cyber-Duck/blade-extensions)[ Packagist](https://packagist.org/packages/cyber-duck/blade-extensions)[ Docs](https://github.com/RobinRadic/blade-extensions)[ RSS](/packages/cyber-duck-blade-extensions/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (10)Versions (44)Used By (0)

[![Laravel logo](https://camo.githubusercontent.com/f4160380c8933ec4e23dfb2e993b90fdef6be139c28f8b26860412911013d7a9/687474703a2f2f6c61726176656c2e636f6d2f6173736574732f696d672f6c61726176656c2d6c6f676f2e706e67)](https://camo.githubusercontent.com/f4160380c8933ec4e23dfb2e993b90fdef6be139c28f8b26860412911013d7a9/687474703a2f2f6c61726176656c2e636f6d2f6173736574732f696d672f6c61726176656c2d6c6f676f2e706e67) Laravel Blade Extensions
==============================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#--laravel-blade-extensions)

[![Build Status](https://camo.githubusercontent.com/5c8ee0add6732b8e9c8e717af9c7f494ac7a7aedd9b9ff81e318f0bab01c9566/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f526f62696e52616469632f626c6164652d657874656e73696f6e732e7376673f6272616e63683d6d6173746572267374796c653d666c61742d737175617265)](https://travis-ci.org/RobinRadic/blade-extensions)[![GitHub Version](https://camo.githubusercontent.com/67b88eb6b46e1d26b114554c3ab07e821899b80dc3d81dac8274cd9788b43c8e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f726f62696e72616469632f626c6164652d657874656e73696f6e732e7376673f7374796c653d666c61742d737175617265266c6162656c3d76657273696f6e)](http://badge.fury.io/gh/robinradic%2Fblade-extensions)[![Total Downloads](https://camo.githubusercontent.com/88996b53f090ae84d1f4e1126b03d4088022d6ccfb8a0f7eca532e4031052b41/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f72616469632f626c6164652d657874656e73696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/radic/blade-extensions)[![License](https://camo.githubusercontent.com/3950454bd41aa92a19854a4ad516b52a3f53211ab0ebc68beff94e5379a2036b/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d6666363962342e7376673f7374796c653d666c61742d737175617265)](http://radic.mit-license.org)

A *Laravel* package providing additional Blade functionality.

**Tested on all Laravel 5.x &amp; 6.x versions. Supports Laravel 7.x**

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 8.0

[](#version-80)

- [**Documentation**](docs/index.md)
- [**Changelog**](docs/prologue/changelog-upgrade-guide.md)
- [**Code of Conduct**](docs/CODE_OF_CONDUCT.md)
- [**Contributing**](docs/CONTRIBUTING.md)
- [**Pull Request Template**](docs/PULL_REQUEST_TEMPLATE.md)
- [**Issue Template**](docs/ISSUE_TEMPLATE.md)

#### Features

[](#features)

- Compatible with [all Laravel 5 &amp; 6 versions](https://travis-ci.org/RobinRadic/blade-extensions)
- **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

[](#directives)

All directives can be disabled, extended or replaced.

- [@set / @unset](docs/directives/set-unset.md) Setting and unsetting of values
- [@breakpoint / @dump](docs/directives/breakpoint-dump.md) Dump values to screen and set breakpoints in views
- [@foreach / @break / @continue](docs/directives/foreach-break-continue.md) Loop data and extras (similair to twig `$loop`)
- [@embed](docs/directives/embed.md) Think of embed as combining the behaviour of include and extends. (similair to twig `embed`)
- [@minify / @endminify](docs/directives/minify.md) Minify inline code. Supports CSS, JS and HTML.
- [@macro / @endmacro/ @macrodef](docs/directives/macro.md) Defining and running macros
- [@markdown/ @endmarkdown](docs/directives/markdown.md)
- [@spaceless / @endspaceless](docs/directives/spaceless.md)
- and more...

### Installation

[](#installation)

#### 1. Composer

[](#1-composer)

```
"radic/blade-extensions": "~7.1"
```

#### 2. Laravel

[](#2-laravel)

```
Radic\BladeExtensions\BladeExtensionsServiceProvider::class
```

#### 3.Configuration

[](#3configuration)

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](https://laravel.com/docs/5.6/blade#the-loop-variable), [Components &amp; Slots](https://laravel.com/docs/5.6/blade#components-and-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

[](#copyrightlicense)

Copyright 2015 [Robin Radic](https://github.com/RobinRadic) - [MIT Licensed](http://radic.mit-license.org)

###  Health Score

32

—

LowBetter than 71% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 73.3% 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

Every ~62 days

Recently: every ~181 days

Total

38

Last Release

1936d ago

Major Versions

v3.0.x-dev → 4.0.02015-06-20

v4.1.x-dev → 5.0.02015-08-18

5.0.0 → 6.0.02015-09-15

6.2.5 → 7.0.0-beta2017-03-08

7.3.0 → 8.0.02020-03-30

PHP version history (3 changes)1.1.0PHP &gt;=5.4.0

4.0.0PHP ^5.5.9

4.1.0PHP &gt;=5.5.9

### Community

Maintainers

![](https://www.gravatar.com/avatar/0c45a99726cc30692bc4821cfc198df1f5de85b1a15f9b66a0bf739acbac0309?d=identicon)[cyber-duck](/maintainers/cyber-duck)

---

Top Contributors

[![RobinRadic](https://avatars.githubusercontent.com/u/754732?v=4)](https://github.com/RobinRadic "RobinRadic (11 commits)")[![aleemb](https://avatars.githubusercontent.com/u/46616?v=4)](https://github.com/aleemb "aleemb (1 commits)")[![dweinerATL](https://avatars.githubusercontent.com/u/5572940?v=4)](https://github.com/dweinerATL "dweinerATL (1 commits)")[![haleksandre](https://avatars.githubusercontent.com/u/8269937?v=4)](https://github.com/haleksandre "haleksandre (1 commits)")[![joaodman](https://avatars.githubusercontent.com/u/6719189?v=4)](https://github.com/joaodman "joaodman (1 commits)")

---

Tags

laravelbladeextensionsloop

### Embed Badge

![Health badge](/badges/cyber-duck-blade-extensions/health.svg)

```
[![Health](https://phpackages.com/badges/cyber-duck-blade-extensions/health.svg)](https://phpackages.com/packages/cyber-duck-blade-extensions)
```

###  Alternatives

[radic/blade-extensions

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

271321.7k5](/packages/radic-blade-extensions)[blade-ui-kit/blade-icons

A package to easily make use of icons in your Laravel Blade views.

2.5k34.2M309](/packages/blade-ui-kit-blade-icons)[tightenco/jigsaw

Simple static sites with Laravel's Blade.

2.2k438.5k29](/packages/tightenco-jigsaw)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[moonshine/moonshine

Laravel administration panel

1.3k217.1k59](/packages/moonshine-moonshine)[spatie/laravel-blade-comments

Add debug comments to your rendered output

177325.5k](/packages/spatie-laravel-blade-comments)

PHPackages © 2026

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