Skip to main content

PHP TEMPLATE TOOLKIT

Templates that stay close to your markup.

Compile familiar HTML tags into fast PHP cache files, with versioned assets and optional Redis or database metadata.

Source
HTML-first
Metadata
File, Redis, SQL
Assets
CSS, JS, static
template/home.html
<h1>Hello {$name}</h1>
<link href="{loadcss app.css}">
<!--{if $signedIn}-->
  <p>Welcome back.</p>
<!--{/if}-->
compilecache/home.cache.php
FILE CACHEREDISPOSTGRESQLMYSQL

THE WORKFLOW

One compact layer between HTML and PHP.

01

Write markup

Use variables, includes, conditions, loops, and blocks directly in trusted HTML templates.

Read the syntax

02

Version assets

Generate cache-aware CSS, JavaScript, and static paths without hand-managed query strings.

Handle assets

03

Choose storage

Keep metadata on disk or move it to Redis, PostgreSQL, or MySQL as your deployment requires.

Configure backends

START SMALL

A local cache is enough to begin.

Switch to Redis or a relational backend only when you need shared cache metadata.

Compare cache backends