PHPackages                             fortephp/sheath-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. fortephp/sheath-blade-compiler

ActiveLibrary

fortephp/sheath-blade-compiler
==============================

Laravel Blade compiler diagnostics for the Sheath template linter.

v0.1.0(yesterday)02↑2900%MITPHPPHP ^8.2CI passing

Since Aug 24Pushed yesterdayCompare

[ Source](https://github.com/fortephp/sheath-blade-compiler)[ Packagist](https://packagist.org/packages/fortephp/sheath-blade-compiler)[ GitHub Sponsors](https://github.com/johnathonkoster)[ RSS](/packages/fortephp-sheath-blade-compiler/feed)WikiDiscussions main Synced today

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

Sheath Blade Compiler
=====================

[](#sheath-blade-compiler)

Catch PHP errors in compiled Blade templates before they reach production.

This [Sheath](https://github.com/fortephp/sheath) plugin compiles your Blade views and checks the generated PHP for syntax and compile-time errors. It supports your application's custom directives and components without rendering views or executing their PHP.

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

[](#installation)

```
composer require --dev fortephp/sheath-blade-compiler
```

Laravel discovers the package automatically. Add its preset to `config/sheath.php`:

```
'preset' => ['recommended', 'blade-compiler'],
```

Then run Sheath normally:

```
php artisan sheath:lint
```

You can also try the plugin without changing your config:

```
php artisan sheath:lint --preset=blade-compiler
```

What it catches
---------------

[](#what-it-catches)

- malformed Blade directives and echoes;
- invalid PHP emitted by custom directives or compiler hooks;
- component compilation failures;
- PHP compile-time errors such as illegal `break` statements and duplicate imports;
- syntax errors inside `@php` blocks and native PHP tags.

Errors are reported in your Blade view rather than generated PHP, so they are easier to find and fix.

By default, the plugin starts a separate PHP process to check each compiled view. This catches compile-time errors that a simpler in-process parser can miss. If your environment does not allow PHP processes, use parser mode instead:

```
'rules' => [
    'blade-compiler-valid-output' => ['error', [
        'phpValidation' => 'parser',
    ]],
],
```

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

[](#requirements)

- PHP 8.2 or newer
- Laravel 12 or 13
- Sheath 1.x

License
-------

[](#license)

MIT. See [license.md](license.md).

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance100

Actively maintained with recent releases

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 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

1d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a83ab8381df8c78dbe4acc582ab8b0c0202dfa5f59a4c837b32d78a2bafc0fe7?d=identicon)[stillat](/maintainers/stillat)

---

Top Contributors

[![JohnathonKoster](https://avatars.githubusercontent.com/u/5232890?v=4)](https://github.com/JohnathonKoster "JohnathonKoster (3 commits)")

---

Tags

laravelblade linter

###  Code Quality

TestsPest

Static AnalysisPHPStan, Rector

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/fortephp-sheath-blade-compiler/health.svg)

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

###  Alternatives

[unopim/unopim

UnoPim Laravel PIM

10.8k2.5k](/packages/unopim-unopim)[api-platform/laravel

API Platform support for Laravel

58190.1k21](/packages/api-platform-laravel)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21327.3k4](/packages/ecotone-laravel)[codewithdennis/larament

Larament is a time-saving starter kit to quickly launch Laravel 13.x projects. It includes FilamentPHP 5.x pre-installed and configured, along with additional tools and features to streamline your development workflow.

4041.8k](/packages/codewithdennis-larament)[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

3622.8k](/packages/duncanmcclean-statamic-cargo)

PHPackages © 2026

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