philo/laravel-blade
Use Laravel's Blade template engine outside of Laravel. This package compiles .blade.php templates into plain PHP through a simple standalone API, supporting layouts, includes, directives, and caching—ideal for lightweight projects that want Blade's clean syntax without the full framework.
@section/@extends, @include, auto-escaping, compile-to-PHP caching) instead of hand-rolling an in-house template layer or paying for a hosted rendering service. The package itself is just the adapter that lets you make that decision without adopting Laravel as a framework — "Blade without Laravel."illuminate/view. That migration is a roadmap line item, so it belongs in planning.@once, or modern Laravel versions — it predates all of them.Consider it when:
philo/laravel-blade and the cheapest near-term path is pinning PHP while planning a contained migration.illuminate/view (first-party, versioned with Laravel) or jenssegers/blade (maintained wrapper, same ergonomics).Look elsewhere when:
illuminate/view + illuminate/events directly — same API, current PHP support, security patches, Blade Components for free. Wrap it yourself in ~30 lines; that's essentially all this package is.@once, @push semantics from Laravel 6+ are absent.sprintf/strtr beats pulling in a compiler.For executives (60 seconds). We're evaluating whether to standardize HTML rendering on Blade, Laravel's template engine, without adopting the Laravel framework. The upside is real: one template language across web, email, and internal tools; templates compile to plain PHP so there's no per-request parsing cost; and Blade is the most widely known PHP templating syntax, which broadens hiring and speeds designer handoff. The specific open-source wrapper in front of us is stale — last release 2015, no active maintainer, zero downstream dependents. So the recommendation is not to adopt this package. It's to adopt the engine behind it through Laravel's official standalone component (illuminate/view) or the maintained jenssegers/blade wrapper: identical capability, current PHP support, security patches included. The strategic call — standardize on Blade — is sound and low-risk. The tactical call — use this library — is not. Cost is effectively zero either way; the risk we're avoiding is a stranded dependency discovered two years from now during a PHP upgrade.
For engineering. Treat the repo as documentation, not a dependency. What it does — wiring an Illuminate\View\FileViewFinder, EngineResolver, BladeCompiler, a cache path, and a container — is roughly thirty lines you can own directly against illuminate/view, a first-party package that ships on Laravel's release cadence and gives you Components, @once, and PHP 8 compatibility without extra work. If you want a maintained drop-in with the same developer ergonomics, jenssegers/blade tracks current Laravel. If you're already running philo/laravel-blade in production, put it on the deprecation list now: pin the PHP version, funnel every render call through a single Renderer interface, then swap the implementation to illuminate/view as a contained refactor rather than an emergency. One hard constraint — do not use Blade (this package or the official one) for untrusted or user-authored templates; it compiles to raw PHP with no sandbox. Twig is the requirement in that case.
How can I help you explore Laravel packages today?