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

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

prinsfrank/indenting-persistent-blade-compiler
==============================================

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

v8.80(4y ago)161404[1 PRs](https://github.com/PrinsFrank/IndentingPersistentBladeCompiler/pulls)MITPHPPHP ^7.2 || ^8.0

Since Jul 18Pushed 4y ago1 watchersCompare

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

READMEChangelog (10)Dependencies (4)Versions (17)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

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 91.5% 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 ~66 days

Recently: every ~162 days

Total

15

Last Release

1560d ago

Major Versions

v1.0.5 → v7.32020-03-25

v7.9 → v8.02020-11-01

PHP version history (2 changes)v1.0.0PHP ^7.2

v8.80PHP ^7.2 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/288919c24dc651727390578a2bfe6ef020f6f508c30db717b54c943a9e2ac0b3?d=identicon)[PrinsFrank](/maintainers/PrinsFrank)

---

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)")[![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

bladeblade-compilerblade-template-enginecompilerlaravellaravel-frameworklaravel-packagetemplate-compilerlaravelbladecompilerindenting

###  Code Quality

TestsPHPUnit

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/prinsfrank-indenting-persistent-blade-compiler/health.svg)](https://phpackages.com/packages/prinsfrank-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)
