phpc XMExtension uses makefile macros to execute .phpc files (or any PHP files you want) within an enhanced command line PHP environment. Important functions for error handling, file dependency detection and other utility functions are included in the file xmake/config/XMExtensions/phpc.inc. XMake.conf options can be used to simulate a web server environment. .phpc files are processed by XMake by including them within a command line of the following general (simplified) form.
    /path/to/php \
    -c ${XMAKE_EXT_PHPC_PHP_INI} \
    -d log_errors=1 \
    -d error_log= \
    -d display_errors=0 \
    -d display_startup_errors=0 \
    -r '... \
    include(getenv("XMAKE_HOME")."/config/XMExtensions/phpc.inc"); \
    ... \
    $XMAKE_XME_PHPC_ERROR_REPORTING_MASK = \
    getenv("XMAKE_XME_PHPC_ERROR_REPORTING_MASK"); \
    \
    error_reporting($XMAKE_XME_PHPC_ERROR_REPORTING_MASK); \
    /* set some PHP globals */ \
    set_error_handler("phpc_error_handler"); \
    /* execute any PHP code passed in: */ \
    include("/path/to/myFile.phpc"); ...' \
    1> "/path/to/myFile" ...