Code Generation: The (sort of) PHP Compiler
Warren Smith (contact me)
This class can be used to obfuscate PHP code.
It can parse one or more PHP source code files using the PHP tokenizer functions to remove comments and white space.
The resulting code can be compressed using gzip before it generates a self-extracting PHP script that decompresses the original obfuscated code.
It class can call an hook to further obfuscate the source after it has been compressed.
Click here for detailed information about this class on phpclasses.org