syncroze/ldt-lang

ldt-lang — Logic Driven Text Language, an embeddable templating language (.ldt files), interpreted in PHP.

Maintainers

Package info

github.com/syncroze/ldt-lang

Homepage

pkg:composer/syncroze/ldt-lang

Transparency log

Statistics

Installs: 2

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.0 2026-07-06 18:08 UTC

This package is auto-updated.

Last update: 2026-07-06 19:06:50 UTC


README

Logic Driven Text Language — an embeddable templating language interpreted in PHP. Like PHP, it is written inside arbitrary text: everything is literal until a bracket construct appears. Files use the .ldt extension.

The engine is a four-stage Lexer → Trimmer → Parser → Interpreter pipeline with a bracket-tag surface syntax and a nested data model.

Full documentation, syntax reference, and caveats: ldt-lang.syncroze.com

Installation

composer require syncroze/ldt-lang

syncroze/ldt-lang on Packagist

require 'vendor/autoload.php';
use Ldtlang\Ldt;

echo Ldt::render('Hello [set who = world][= @who]!');

The bundled CLI is available at vendor/bin/ldt:

vendor/bin/ldt template.ldt --set who=world

No Composer? The engine also runs with plain PHP — see autoload.php in the repository and the docs site for the dependency-free setup.