PHPackages                             bgaze/laravel-blade-indenter - 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. bgaze/laravel-blade-indenter

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

bgaze/laravel-blade-indenter
============================

A basic indenter for Laravel 5.8+ Blade templates

v1.0.0(6y ago)063↓100%MITPHP

Since Mar 3Pushed 5y ago1 watchersCompare

[ Source](https://github.com/bgaze/laravel-blade-indenter)[ Packagist](https://packagist.org/packages/bgaze/laravel-blade-indenter)[ RSS](/packages/bgaze-laravel-blade-indenter/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Basic indenter for Laravel 5.8+ Blade templates
===============================================

[](#basic-indenter-for-laravel-58-blade-templates)

This is a very simple indenter for Laravel Blade template, mainly designed to indent generated files in my [CRUD generator for Laravel](https://github.com/bgaze/laravel-crud).

It won't format or validate code: it just indent existing lines following very simple rules.
It expects a valid and well formed code, and won't deal well with instructions on multiple lines.

Any contribution or feedback is highly welcomed, please feel free to create a pull request or [submit a new issue](https://github.com/bgaze/laravel-blade-indenter/issues/new).

 [![Basic indenter for Laravel 5.8+ Blade templates](./readme.png)](./readme.png)

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

[](#documentation)

Full documentation is available at

Quick start
-----------

[](#quick-start)

Simply import the package with composer:

```
composer require bgaze/laravel-blade-indenter

```

Configuration can be published to `/config/blade-indenter.php`:

```
php artisan vendor:publish --tag=blade-indenter-config

```

The package exposes a single service which indents Blade string :

```
use Bgaze\BladeIndenter\BladeIndenter;

$indentedString = resolve(BladeIndenter::class)->indent($stringToIndent);
```

Two helpers are also provided for convenience :

```
// Indent a string
$indentedString = indent_blade_string($stringToIndent);

// Indent a blade file, overwrite it and return formatted content.
$indentedFileContent = indent_blade_file($filePath);

// Indent a blade file and return formatted content without overwriting.
$indentedFileContent = indent_blade_file($filePath, false);
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 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

2261d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4f4a5f965ee3485d7f2c78450a371d363027a7f10935d6559869874a584d5402?d=identicon)[bgaze](/maintainers/bgaze)

---

Top Contributors

[![bgaze](https://avatars.githubusercontent.com/u/985214?v=4)](https://github.com/bgaze "bgaze (9 commits)")

### Embed Badge

![Health badge](/badges/bgaze-laravel-blade-indenter/health.svg)

```
[![Health](https://phpackages.com/badges/bgaze-laravel-blade-indenter/health.svg)](https://phpackages.com/packages/bgaze-laravel-blade-indenter)
```

###  Alternatives

[cagilo/cagilo

A set of open-source Blade components for the Laravel Framework

172996.5k](/packages/cagilo-cagilo)[orchid/blade-icons

An easy way inline SVG images in your Blade templates.

223.4M9](/packages/orchid-blade-icons)[wireui/heroicons

The Tailwind Heroicons for laravel blade by WireUI

43390.8k5](/packages/wireui-heroicons)[stillat/antlers-components

2656.0k1](/packages/stillat-antlers-components)[itstructure/laravel-grid-view

Grid view for laravel framework

2546.6k2](/packages/itstructure-laravel-grid-view)[ycs77/inertia-laravel-ssr-head

Simple SSR Head for Inertia Laravel

3211.5k](/packages/ycs77-inertia-laravel-ssr-head)

PHPackages © 2026

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