The PHPTAL library is licensed under the terms of the GNU Lesser General Public License (the license allows use of PHPTAL in both free and commercial, closed-source projects).
tar zxvf PHPTAL-1.2.2.tar.gz)PHPTAL-1.2.2 directory to anywhere you like (your project or include directory)PHPTAL.php in your scripts (e.g. require_once "my/stuff/libs/phptal/PHPTAL.php";)The latest stable release of PHPTAL (1.2.2) is always reachable via latest.tar.gz, and the following will work:
pear install http://phptal.org/latest.tar.gz
pear upgrade http://phptal.org/latest.tar.gzThese versions are for testing. If you've found bug in PHPTAL, please check if it's not fixed already. Use of this code in production is risky.
You can access latest PHPTAL source code using Git or Subversion:
git clone git://github.com/pornel/PHPTALsvn co https://svn.motion-twin.com/phptal/trunk phptalYour contributions are welcome! You can use svn diff or git format-patch origin/master to send me patches, or fork on GitHub and make a Pull Request.
You can also install older releases of PHPTAL using specific URLs:
pear install http://phptal.org/files/PHPTAL-1.2.2.tar.gz
pear upgrade http://phptal.org/files/PHPTAL-1.2.2.tar.gz