Install THT
What You Need
To run THT, you will need these requirements.
- PHP 7.1+
- MacOS or Linux. (Windows coming soon)
PHP Version
PHP is usually pre-installed on most platforms.
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.
Run the tht
command without arguments.
$ tht
If everything worked, you should see the help page, like this:
+-----------+ | THT | +-----------+
Version: v0.6.1 - Beta
Usage: tht [command]
Commands:
new create an app in the current dir server start the local test server
$
Not Working?
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.)
Great!
You are now ready to set up the starter app.