T-Regx recommended way of installation is using Composer.

PHP 7.1 and later#

The installation of T-Regx is really simple - just add a composer dependency:

composer require rawr/t-regx

Scroll to "How to install Composer"

Try T-Regx online (

Before you install, you can try T-Regx online, right in your browser.

Just visit T-Regx on, and when it boots up (after about 4 seconds), just click "Run" at the top. example

You can log in to with Github account, Google account, Facebook account or regular credentials. login

There are two files in the fiddle: You can edit EDIT_HERE.php as you please; EXAMPLES.php contains many basic and complicated examples of T-Regx.

Go to and run the EXAMPLES.php or your file in EDIT_HERE.php: login

Install composer#

You can either download an executable setup from, or use a script to download it, right from your terminal (Windows and Unix).

php -r "copy('', 'composer-setup.php');"
php composer-setup.php
php -r "unlink('composer-setup.php');"

Once downloaded, install T-Regx.

php composer.phar require rawr/t-regx
Last updated on