phpAspect – Aspect-Oriented Programming for PHP
phpAspect is a PHP language extension to implement Aspect-Oriented Programming. The phpAspect compiler weaves aspects implementing crosscutting concerns (see the weaving chain) into PHP source code. The weaving process is static (before source code execution) and based on Lex and Yacc analysis to generate xml parse trees. XSLT is used to perform the source code transformation on those trees. The woven PHP source code can be executed with any PHP 5 version.