As in JSP we give "WAR" file to clients and it contains .class files and other configuration files but not the source code, is there any way, in PHP, to deliver the project (website) to client without giving them source code.
Asked
Active
Viewed 1,055 times
0
-
1http://stackoverflow.com/questions/764927/encrypt-php-code It's not exactly the same question, thus I omit the close vote ;) – KingCrunch Jun 14 '12 at 13:58
-
2http://stackoverflow.com/questions/232736/code-obfuscator-for-php – Nanne Jun 14 '12 at 13:59
-
Please consider using Google before asking such a question. I'm quite sure that even SO has shown you a set of similar questions when you typed the title... – Mihai Todor Jun 14 '12 at 14:00
-
http://blog.stackoverflow.com/2010/11/dr-strangedupe-or-how-i-learned-to-stop-worrying-and-love-duplication/ – J. Bruni Jun 14 '12 at 14:02
2 Answers
1
Facebook created a project called HipHop php, a php compiler.
See this post:

Community
- 1
- 1

Manual5355
- 981
- 10
- 27
1
Short answer, not really.
I mean you can compile php into a single .phar file however anyone with moderate php knowledge can get the code from that.
There are also solutions http://www.ioncube.com/ though I don't know how easily someone can get the code from it however I would strongly advise against any solution like this as they generally require the user of this "compiled" code to you their proprietary software to run it.

ryanzec
- 27,284
- 38
- 112
- 169