PHPTAL is released as a PEAR package (see You can download the PHPTAL library on the PHPTAL website:

You can install it using the PEAR utility:

pear install

Once installed, you can upgrade PHPTAL easily on each PHPTAL update using PEAR:

pear upgrade

If you do not use PEAR or do not have it installed on your system, you can still install PHPTAL by unzipping the downloaded archive.

tar zxvf PHPTAL-X.X.X.tar.gz
cp -r PHPTAL-X.X.X/PHPTAL* /path/to/your/lib/folder

This will install the PHPTAL.php file and the associated PHPTAL folder in /path/to/your/lib/folder.