A Quick Look
Built on PHP (The Good Parts)
You don’t need to know PHP to use THT.
When you update your THT code, it’s automatically transpiled to PHP. No extra steps are necessary — just edit and refresh.
Because it’s cached, your site is always running the final PHP code.
Each page request follows the same “share nothing” approach that makes PHP apps easy to reason about.
For a full comparison, see How THT compares to PHP.
THT includes almost everything you need for a modern website:
- Router for clean URLs (e.g. “/blog/123/top-ten-things”)
- Template system that supports embedded THT code
- Base stylesheet with a flexbox grid system & SVG icons
- Litemark parser for Markdown-style content
- JCON for easy-to-edit configuration & data
By default, THT defends against the most common security risks.
Some of the improvements over standard PHP:
- Introduces LockStrings to prevent injection attacks.
- Template variables are automatically escaped. (XSS)
- High-risk commands are restricted. (e.g.
- See all changes.
Out of the box, PHP is more than fast enough for most apps. But you can benefit even more by the speed gains in PHP 7, or an opcode cache like APC.
THT provides a built-in Perf module to identify any performance bottlenecks in your app (usually database calls).
Q: Why should I use THT?
You might like THT if you appreciate the convenience & simplicity of PHP, but don’t want to deal with the idiosyncrasies and pitfalls that come with it.
At this early stage, THT is probably best for single-server web apps. This includes anything you would run on a shared web host. (e.g. content-driven sites, blogs, forums, home pages, etc.)
It aims to be useful for programmers of all levels: From novices with a little programming experience, to experienced programmers looking for a quick web development tool.
Give It a Try
THT is still in Beta, but if you’d like to try it out, it’s already capable of making basic web apps.
Check out the Get Started page.