Actually I'm dealing with a trouble in my system, I have to delivery the system do clients and it was built in PHP, JS, ShellScript and SQL. 
I would like to encrypt the code or obfuscate it from eyes of others! Then someone from the community told me about build my own php extension, it sounds to me as a great idea, since it will not be with the main code of the system.

But I have a problem doing this way, if a programmer get in the extensions and find it, all the hard work has gone. Then I'm here to ask again about this matter.

What is the BEST WAY to hidden my Business Logic (My Hard Work) from third parties, from others? 

I know that has stuffs like IONCUBE, ZEND GUARD, and many others. But I'm looking something that I can build myself. 

Is PHP extension the right way to follow? 
or
Some Half SaaS system, with dependencies (Business Logic) in a remote server.


**About the environment** 

OS: Kernel Linux 2.6.37.1-1.2 - 
LAMPP (Apache 2.2, MySQL 5.5  PHP 5.3.8)

in php generally the extension is located at `/php/ext/` but in lampp I have no idea where it is, I just found a folder `/opt/lampp/lib/php/extensions/` is that right place? 


Any Help will be appreciated very much!


Cheers people! And one bottle of rum.
Long Live to everyone!