Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
PHP Template Attribute Language — template engine for XSS-proof well-formed XHTML and HTML5 pages
PHP XSLT

Merge pull request #36 from usox/preg_replace_callback_deprecation

Use preg_replace_callback instead of preg_replace
latest commit ec1e3f44b0
@Ocramius Ocramius authored
Failed to load latest commit information.
classes Merge pull request #35 from pornel/short-tag-of-php54
doc Fixed some translations and changing usage of terms #7
tests Use preg_replace_callback instead of preg_replace
tools Fixed stripping of space before tal:content
xsd
.gitignore Install PHPUnit via Composer
.travis.yml Adding PHP 5.3.3 to build matrix
COPYING oups forgot the license
Makefile Fixed stripping of space before tal:content
README.md Adding build status to README.md for visibility in project homepage
build.xml PEAR channel for standalone file installation should be __uri.
composer.json Install PHPUnit via Composer
phpunit.xml Display errors in test

README.md

PHPTAL - Template Attribute Language for PHP

Master: Build Status

Usage requirements

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 gettext extension must be compiled into PHP (--with-gettext).

Non-PEAR install

To run you only need PHPTAL.php and files in PHPTAL directory. Other files are for unit tests and PEAR installer.

Get the latest PHPTAL package from http://phptal.org.

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

PEAR Install

Get the latest PHPTAL package from http://phptal.org.

Then run:

pear install PHPTAL-X.X.X.tar.gz

Getting the latest development version

You can checkout the latest development version using:

svn co https://svn.motion-twin.com/phptal/trunk phptal

PHPTAL development requirements

If you want to hack PHPTAL (don't forget to send me patches), you will require:

  • The PHPTAL development package
  • PEAR (to easily install other tools) http://pear.php.net

  • Phing to run maintainance tasks

    pear channel-discover pear.phing.info
    pear install phing/phing
    
  • PHPUnit 3.4 to run tests

    pear channel-discover pear.phpunit.de
    pear channel-discover pear.symfony-project.com
    pear channel-discover components.ez.no
    pear install phpunit/PHPUnit
    
Something went wrong with that request. Please try again.