Skip to content


Subversion checkout URL

You can clone with
Download ZIP
PHP Template Attribute Language — template engine for XSS-proof well-formed XHTML and HTML5 pages
Latest commit 20849d3 @potherca potherca Merge pull request #47 from REBELinBLUE/master
Adding PHPTAL_lint to bin directoy

PHPTAL - Template Attribute Language for PHP

Monthly Downloads License Build Status Scrutinizer Quality Score


To use PHPTAL in your projects, you will only require PHP 5.1.2 or later.

If you want to use the builtin internationalisation system (I18N), the php-gettext extension must be installed or compiled into PHP (--with-gettext).

Composer install (recommended)

You can install this package by using Composer. Link to Packagist:

composer require phptal/phptal

Manual install

Get the latest PHPTAL tarball from

tar zxvf PHPTAL-X.X.X.tar.gz
mv PHPTAL-X.X.X/PHPTAL* /path/to/your/php/include/path/


Please see the projects releases page

Getting the latest development version

You can find the latest development version on github:

Addition development requirements (optional)

If you would like to generate the offical html/text handbook by calling make doc, you will need to install the xmlto package. Please use your operating systems package manager to install it.

Something went wrong with that request. Please try again.