PHP lint checking is built in to XMake, for both *.php and *.phpc files, using targets: 'php.lint' and 'phpc.lint'. WARNING: Lint checking EXECUTES all *.php or *.phpc scripts in the XMake project tree. If you have a script lying around that could do bad things like <?php system("rm -rf /;");?> then it WILL do those things if it resides within an XMake project and you execute 'xmake php.lint' or 'xmake phpc.lint'. Of course, this depends on the file permissions in effect.
[greg@p3 src]$ xmake php.lint
TEST: php.lint
PURPOSE: check for errors in .php files:
XMAKE_EXT_PHPC_PHP_INI=/usr/local/lib/php.ini
XMAKE_XME_PHPC_LINT_FATAL_ERROR_MASK=0

SOURCE FILE:
/usr/local/apache/htdocs/common/xmake/examples/phpc/phpconf2003/slides/src/build-versus-run-time.php
phpc_error_handler:
    E_NOTICE [8] import_request_variables(): No prefix
    specified - possible security hazard
    in line 11 of file
    /usr/local/apache/htdocs/common/xmake/examples/phpc/phpconf2003/slides/src/build-versus-run-time.php
phpc_error_handler:
    E_NOTICE [8] Undefined variable:  user
    in line 1 of file
    /usr/local/apache/htdocs/common/xmake/examples/phpc/phpconf2003/slides/src/build-versus-run-time.php.template.en
phpc_error_handler:
    E_NOTICE [8] import_request_variables(): No prefix
    specified - possible security hazard
    in line 29 of file
    /usr/local/apache/htdocs/common/xmake/examples/phpc/phpconf2003/slides/src/build-versus-run-time.php
phpc_error_handler:
    E_NOTICE [8] Undefined variable:  user
    in line 30 of file
    /usr/local/apache/htdocs/common/xmake/examples/phpc/phpconf2003/slides/src/build-versus-run-time.php