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.
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)
- Access to sensitive commands is restricted. (e.g. system, eval)
- See all changes.
Out of the box, PHP is more than fast enough for most apps. But you can benefit even more by the huge 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).
Is THT Right For Me?
Right now, THT is 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.