THT is in early Beta. We welcome contributors & feedback.
A new language for dynamic websites.
  • Compiles to PHP. PHP is quick, easy to manage, and available on nearly every platform & web host.
  • Easy to Run. No build steps are necessary. Just edit your files and refresh. The final code is cached for speed.
  • Web Framework. THT includes essential features such as routing, templating, and asset handling.
  • Secure by Default. THT automatically protects against the most common vulnerabilities, like XSS and SQL injection.
  • Easy to Use. THT has a familiar syntax, clear error messages, and a consistently designed standard library.

A Quick Look 

// THT has a familiar JavaScript-like syntax.
let colors = ['red', 'blue'];

// The Web module has methods for common tasks,
// like returning a complete HTML5 document.
    title: 'Primary Colors',
    body:  bodyHtml(colors),

// Template functions let you include HTML in your
// scripts. Logic is just THT, escaped & sandboxed.
// Note the optional HTML shortcuts.
template bodyHtml(colors) {

    <h1>Primary Colors</>
    :: for (color in colors) {
        <li>> {{ color.toUpperCaseFirst() }}
    :: }


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.

Web Framework 

THT includes almost everything you need for a modern website:


By default, THT defends against the most common security risks.

Some of the improvements over standard PHP:


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.