PHPackages                             sleeping-owl/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. sleeping-owl/blade-extended

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

sleeping-owl/blade-extended
===========================

Extension to add control directives attributes to your Blade templates (bd-foreach, bd-inner-foreach, bd-if, bd-attr, bd-class and other).

1.2.0(11y ago)8801MITPHPPHP &gt;=5.4.0

Since Nov 1Pushed 11y ago3 watchersCompare

[ Source](https://github.com/sleeping-owl/blade-extended)[ Packagist](https://packagist.org/packages/sleeping-owl/blade-extended)[ Docs](http://sleeping-owl-blade-extended.gopagoda.com)[ RSS](/packages/sleeping-owl-blade-extended/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (2)Versions (5)Used By (0)

SleepingOwl BladeExtended
-------------------------

[](#sleepingowl-bladeextended)

[![Build Status](https://camo.githubusercontent.com/03b980f681fd6af49dc29c229636630aa43bc947828ef421e6fc8b51f85788cd/68747470733a2f2f7472617669732d63692e6f72672f736c656570696e672d6f776c2f626c6164652d657874656e6465642e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/sleeping-owl/blade-extended)[![Latest Stable Version](https://camo.githubusercontent.com/6b6faa1a5f96685268456446bf1ff14b024e8757b965fb111f582ec828f86fe3/68747470733a2f2f706f7365722e707567782e6f72672f736c656570696e672d6f776c2f626c6164652d657874656e6465642f762f737461626c652e737667)](https://packagist.org/packages/sleeping-owl/blade-extended)[![License](https://camo.githubusercontent.com/660b97417467f05ceaadb17ebb429f9d8a24392cde627b9ff19c6af12b9224a2/68747470733a2f2f706f7365722e707567782e6f72672f736c656570696e672d6f776c2f626c6164652d657874656e6465642f6c6963656e73652e737667)](https://packagist.org/packages/sleeping-owl/blade-extended)[![Code Climate](https://camo.githubusercontent.com/0dfdd07d2d1de09792e2e5e925ceb865bf7d8f4e9a5ccc88c1f48c22b8b87f88/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f736c656570696e672d6f776c2f626c6164652d657874656e6465642f6261646765732f6770612e737667)](https://codeclimate.com/github/sleeping-owl/blade-extended)

SleepingOwl BladeExtended is a simple library, adding `bd-foreach`, `bd-inner-foreach`, `bd-if` and `bd-class` attribute directives support to your blade templates.

##### Create multiple `li` elements, but ignore item with name "\_dev"

[](#create-multiple-li-elements-but-ignore-item-with-name-_dev)

```

 		{{{ $item->name }}}

```

##### Using bd-inner-foreach you can create multiple element for each array item

[](#using-bd-inner-foreach-you-can-create-multiple-element-for-each-array-item)

```

 	{{{ $i }}}
 	{{{ $item }}}

```

##### Add class to element by condition

[](#add-class-to-element-by-condition)

*Note: Conditional classes will be added to existing ones or create class attribute if it doesnt exist.*

```

 	…

```

Installation
------------

[](#installation)

1. Require this package in your composer.json and run composer update (or run `composer require sleeping-owl/blade-extended:1.x` directly):

    ```
    "sleeping-owl/blade-extended": "1.*"

    ```
2. After composer update, add service providers to the `app/config/app.php`

    ```
    'SleepingOwl\BladeExtended\BladeExtendedServiceProvider',

    ```
3. All done! Now you can use new directives in your blade templates.

Documentation
-------------

[](#documentation)

Documentation can be found at [blade-extended documentation](http://sleepingowlbladeextended.cloudcontrolled.com).

Copyright and License
---------------------

[](#copyright-and-license)

Admin was written by Sleeping Owl for the Laravel framework and is released under the MIT License. See the LICENSE file for details.

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

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

Every ~1 days

Total

4

Last Release

4211d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/da62224c5896d50a9def476b8bb1f404457e03540718205587bf666bf4ff94dc?d=identicon)[sleeping-owl](/maintainers/sleeping-owl)

---

Top Contributors

[![sleeping-owl](https://avatars.githubusercontent.com/u/9197310?v=4)](https://github.com/sleeping-owl "sleeping-owl (13 commits)")

---

Tags

laravelbladetemplateextensionextended

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[robsontenorio/mary

Gorgeous UI components for Livewire powered by daisyUI and Tailwind

1.5k454.7k15](/packages/robsontenorio-mary)[sineld/bladeset

A very simple blade extension which allows variables to be set within blade templates.

4423.2k](/packages/sineld-bladeset)[stijnvanouplines/blade-country-flags

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

26307.2k6](/packages/stijnvanouplines-blade-country-flags)[leitsch/kirby-blade

Enable Laravel Blade Template Engine for Kirby 4 and Kirby 5

219.2k](/packages/leitsch-kirby-blade)

PHPackages © 2026

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