PHP: Code obfuscation in 10 steps: https://www.blubgoo.com/php-code-obfuscation-in-10-steps/
Encoding & Decoding PHP Code: https://perishablepress.com/encoding-decoding-php/
GitHub: PHP Obfuscator
Ncryptd, open-source: http://ncryptd.com/
This is an “obfuscator” for PSR/OOp PHP code. Different from other obfuscators, which often use a (reversible) eval() based obfuscation, this tool actually parses PHP, and obfuscates variable names, methods, etc. This means is can not be reversed by tools such as UnPHP. This library was written out of the need to obfuscate the source for a private library which for various reasons could not be shared without steps to protect the source from prying eyes. It is not technically feasible to “encrypt” PHP source code, while retaining the option to run it on a standard PHP runtime.
git clone https://github.com/naneau/php-obfuscator , composer install
Run: path//php-obfuscator$ ./bin/obfuscate obfuscate input output
input, output – directories in the php-obfuscator folder.