PHPackages                             softheroes/indenting-persistent-blade-compiler - 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. softheroes/indenting-persistent-blade-compiler

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

softheroes/indenting-persistent-blade-compiler
==============================================

Extension on the Laravel Blade compiler that persists indenting when using replaced content in blade templates.

v11.0(12mo ago)07.8kMITPHPPHP ^7.2 || ^8.0 || ^8.1

Since Oct 6Pushed 12mo agoCompare

[ Source](https://github.com/SoftHeroes/IndentingPersistentBladeCompiler)[ Packagist](https://packagist.org/packages/softheroes/indenting-persistent-blade-compiler)[ RSS](/packages/softheroes-indenting-persistent-blade-compiler/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (4)Versions (4)Used By (0)

Indenting persistent blade compiler
===================================

[](#indenting-persistent-blade-compiler)

[![Build Status](https://camo.githubusercontent.com/ad366cc924c59ee727fde5e127b2bab10a72417e36544262a9ee9fee57b8ac7e/68747470733a2f2f7472617669732d63692e6f72672f5072696e734672616e6b2f496e64656e74696e6750657273697374656e74426c616465436f6d70696c65722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/PrinsFrank/IndentingPersistentBladeCompiler)

Have you ever looked at the HTML Laravel generates and wondered about the mess? That's what I want to solve with this package. [As this is not going to be fixed in Laravel Framework itself](https://github.com/laravel/framework/pull/28768) I decided to make it into a package, and here it is!

The problem
-----------

[](#the-problem)

An example with all replaced content types:

```
// app.blade.php
@push('scripts')

@endpush

        @stack('scripts')

            @section('sidebar')

            @show

            @yield('content')

```

```
// main.blade.php
@extends('example.app')

@section('sidebar')
@parent

@endsection

@section('content')

    @include('example.include')
    @includeif('example.include')
    @includewhen(true, 'example.include')
    @includefirst(['example.include', 'example.include'])

            @each('example.include', [1,2], 'index')

    @component('example.component')
        @slot('title')

        @endslot

    @endcomponent

@endsection

```

```
// component.blade.php

        {{ $title }}

    {{ $slot }}

```

```
// include.blade.php

```

Results in the following HTML. What a mess, right?

```

```

This package fixes that and generates the following HTML:

```

```

Setting things up
-----------------

[](#setting-things-up)

Run `composer require prinsfrank/indenting-persistent-blade-compiler`

Run `php artisan view:clear` to clear the already compiled views. Don't forget to do this when deploying to production as well, existing templates will break!

###  Health Score

38

—

LowBetter than 84% of packages

Maintenance52

Moderate activity, may be stable

Popularity21

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.8% 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 ~473 days

Total

3

Last Release

363d ago

Major Versions

v9.0 → v10.02023-11-16

v10.0 → v11.02025-05-11

### Community

Maintainers

![](https://www.gravatar.com/avatar/260d6ab2a216970cdaa95aed53e1b6d57b8a650fe598254e757fd0a19b53118c?d=identicon)[SoftHeroes](/maintainers/SoftHeroes)

---

Top Contributors

[![PrinsFrank](https://avatars.githubusercontent.com/u/25006490?v=4)](https://github.com/PrinsFrank "PrinsFrank (108 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (8 commits)")[![SoftHeroes](https://avatars.githubusercontent.com/u/24780408?v=4)](https://github.com/SoftHeroes "SoftHeroes (5 commits)")[![Firer](https://avatars.githubusercontent.com/u/5728192?v=4)](https://github.com/Firer "Firer (1 commits)")[![vike2000](https://avatars.githubusercontent.com/u/821191?v=4)](https://github.com/vike2000 "vike2000 (1 commits)")

---

Tags

laravelbladecompilerindenting

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/softheroes-indenting-persistent-blade-compiler/health.svg)

```
[![Health](https://phpackages.com/badges/softheroes-indenting-persistent-blade-compiler/health.svg)](https://phpackages.com/packages/softheroes-indenting-persistent-blade-compiler)
```

###  Alternatives

[tightenco/jigsaw

Simple static sites with Laravel's Blade.

2.2k438.5k29](/packages/tightenco-jigsaw)[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)[trupedia/laravel-blade-haml

Wraps MtHaml for ease use in Laravel 5 with Blade syntax style

163.8k](/packages/trupedia-laravel-blade-haml)

PHPackages © 2026

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