PHPackages                             lionmm/compile-blades - 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. lionmm/compile-blades

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

lionmm/compile-blades
=====================

Fork of te-cho/compile-blades to compile blades into a new file instead of overwriting the old file.

1.0.1-rc1(4y ago)31711MITPHPPHP ^7.3|^8.0

Since Feb 25Pushed 4y ago1 watchersCompare

[ Source](https://github.com/LionMM/compile-blades)[ Packagist](https://packagist.org/packages/lionmm/compile-blades)[ RSS](/packages/lionmm-compile-blades/feed)WikiDiscussions develop Synced yesterday

READMEChangelog (5)Dependencies (7)Versions (7)Used By (0)

compile-blades
==============

[](#compile-blades)

A Laravel package for compiling blades nested in 1 file into 1 flattened file.

Refactored and tested only for Laravel 8

Be ready to refactor your views for using this command ;)

Why?
----

[](#why)

> For best performance, you may want to consider flattening your blades on production, cause a lot of nesting consumes time in laravel since each nested level repeats the same pipline process, that consumes time &amp; memory.

### Example of problems:

[](#example-of-problems)

-
-

**Table of Contents**

- [Requirements](#requirements)
- [Installation](#installation)
    - [1) Require the package](#1-require-the-package)
    - [2) Configure Laravel](#2-configure-laravel)
- [Usage](#usage)
    - [Flattening Views](#flattening-views)

Requirements
------------

[](#requirements)

This version of package working only with Laravel 8+

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

[](#installation)

### 1) Require the package

[](#1-require-the-package)

From your project's base path, run:

```
    $ composer require lionmm/compile-blades
```

### 2) Configure Laravel

[](#2-configure-laravel)

```
    $ ./artisan vendor:publish --provider="Lionmm\CompileBlades\CompileBladesServiceProvider"
```

WIP

Usage
-----

[](#usage)

Before getting started, I highly recommend reading through Laravels documentation on Views and Blades.

### Flattening Views:

[](#flattening-views)

Providing everything is set up and configured properly, all you need to do in order to flatten a view for a certain route or something else, is running the following command:

```
    $ php artisan view:compile view.name
```

This will generate a flattened view instead of the current one.

Better way: pic needed blades in `auto_compilers` section of configuration and use command

```
    $ php artisan view:compile:auto
```

By default, folder `compiled` will be created in your `resources/views` path and flatten files will be placed in it

Now you can use command `compiled_view();` instead of `view();` for using flatten views IF they present

WIP

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 56.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 ~90 days

Total

5

Last Release

1538d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/859368dc86aa5559f37ad0144c59928a2e8b4341c41d00579e777763f3aed1be?d=identicon)[LionMM](/maintainers/LionMM)

---

Top Contributors

[![abidulrmdn](https://avatars.githubusercontent.com/u/3129531?v=4)](https://github.com/abidulrmdn "abidulrmdn (26 commits)")[![LisaWouters](https://avatars.githubusercontent.com/u/51329719?v=4)](https://github.com/LisaWouters "LisaWouters (17 commits)")[![mihajlom](https://avatars.githubusercontent.com/u/4687948?v=4)](https://github.com/mihajlom "mihajlom (2 commits)")[![anirbanwgt](https://avatars.githubusercontent.com/u/27990927?v=4)](https://github.com/anirbanwgt "anirbanwgt (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/lionmm-compile-blades/health.svg)

```
[![Health](https://phpackages.com/badges/lionmm-compile-blades/health.svg)](https://phpackages.com/packages/lionmm-compile-blades)
```

###  Alternatives

[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)[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.5k25.9M106](/packages/laravel-cashier)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k12.1M99](/packages/laravel-pulse)[tallstackui/tallstackui

TallStackUI is a powerful suite of Blade components that elevate your workflow of Livewire applications.

703141.0k7](/packages/tallstackui-tallstackui)[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)

PHPackages © 2026

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