reymark / blad
A lightweight Blade-like PHP template engine with caching, directives, and debug support.
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/reymark/blad
Requires
- php: >=7.4
- matthiasmullie/minify: ^1.3
- voku/html-min: ^4.5
This package is auto-updated.
Last update: 2025-11-02 12:18:00 UTC
README
Blad is a modern, zero-dependency, Blade-inspired PHP templating engine built for speed and simplicity.
It’s designed for frameworks or standalone PHP projects that need expressive template syntax without Laravel’s overhead.
✨ Features
- ⚡ Fast file-based compilation cache (auto-updates on change)
- 🧩 Blade-like syntax:
@extends,@section,@yield,@if,@foreach, etc. - 🪄 Custom directives — extend your template language easily
- 🌍 Global variables shared across views
- 🔐 @csrf, @json, @css, @js helpers
- 🧠 Debug mode & error logging
- ⚙️ Configurable view path, cache path, and file extension
- 🪶 No external dependencies — pure PHP ≥7.4
📦 Installation
Install via Composer:
composer require reymark/blad