Phrep

Command-line tool to expand preprocessing directives in PHP script. It handles #if, #ifdef, #else, #endif or #define, #undef, #macro and #pragma directives, to combine source to target php scripts.
It also provides for basic constant and macro expansion, and comes with complex expression transformation macros, such as IFSET($var) or HTML@($html) for more readable PHP code generation.