It is not just the job of the framework. try googling for 'php obfuscator'. Keep in mind that it is impossible to protect your code if the attacker has enough experience in cracking.
elso PHP encoding and obfuscation tools often require an encoder to be installed on their servers, which your clients have to install before they can use your code and as already said, you cannot 100% protect your code.