Search code examples
phpobfuscation

Can I encrypt PHP source or compile it so others can't see it? and how?


I need to encrypt some PHP source that I've released to the public.

Is this possible? Can PHP be "compiled" ?


Solution

  • You can buy Zend Guard to encode your PHP sources, and then use the Zend Optimizer to run it. There is an opensource/free PHP compiler project as well (bcompiler, and also take a look to this) but I never used it because at the time I needed it the project was still incomplete.