What You Need
To run THT, you will need these requirements.
- PHP 5.6+ or 7.0+ (Recommended: 7.1+)
- MacOS or Linux. (Windows eventually)
PHP is usually pre-installed on most platforms, so you’re probably okay.
You can run
php -v to double-check your PHP version.
If you need to install or update PHP, try these guides:
Step 1: Run the Install Command
Open up your Terminal app or command line shell.
Run this command to install THT in your local user directory.
curl -s -o tht.sh https://tht-lang.org/install && source tht.sh
Step 2: Make Sure It Worked
The installer automatically checks itself, but let’s double-check just in case.
tht command without arguments.
If everything worked, you should see the help page, like this:
+-----------+ | THT | +-----------+ Version: 0.5.0 - Beta Usage: tht [command] Commands: new create an app in the current dir server start the local test server images compress images in your document root $
Post your error messages and platform info at the Issue Tracker and we’ll try to help.
(We’ll add more tips here as we get more feedback.)
You are now ready to set up the starter app.