Well I tried to comment on your comment but I don’t have enough points, but as well as said you want to hide your third-party code...
Currently there are 2 methods to do this:
Code obfuscation: Which consists of shuffling the variables, names and etc. within your code so that the reading is not simple, there are various software and services by web only search in Google, I put 2 links of services so as an example:
It is well worth noting that this method of obfuscation is not 100% safe or indecipherable, it will only make reading more difficult and will MAYBE scare away potential curious.
Compilation: Which is roughly the transformation of one language into another semantically equal but applied and executed in OS, in the case of PHP there are some compilers that do this.
The most famous for PHP is the ionCube which is a PAID tool, where you pass your codes through it and it does this compile service, however your server needs to have a module installed in order to get those compiled files back.
Remember that in these two methods you need to have the original code if you want to make modifications, and apply the obfuscation or compilation again before publishing.
But so at first, when PHP is running inside the server the person does not have access to the source only the final output, if only you have access to the codes has no problem, not to mention that compiling or obfuscating someone will still have access to the folders, files and etc. because the structure is maintained only the content is unreadable.
Start with the manual: http://us2.php.net/manual/en/security.php
– Daniel Omine
If the encryption is done correctly, it is no problem to look at your code. But if people have access to the server, they can trade their code for anything. If this is your problem, PHP is not the proper working language.
– Bacco