reymark/blad

A lightweight Blade-like PHP template engine with caching, directives, and debug support.

Maintainers

Details

github.com/Mark6286/blad

Source

Issues

Installs: 10

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/reymark/blad

v0.0.4.1-patch 2025-11-02 08:38 UTC

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