Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Commercializing a php application?

Say I have developed a php webapp and would like to distribute it for others to use as proprietary software. Is there anything I can do short of some sort of licence or just trusting the customer to avoid having to provide a hosted solution? Clearly if I just distribute the application to paying customers to host independently, I run the risk of them leaking the code.

Update:

Some of the responses so far suggest obfuscation. However, this won't prevent another user from simply plopping the leaked obfuscated code onto their servers and reusing it. Granted they won't be able to modify it..but I am looking for something more complete. Any ideas?

like image 691
jk. Avatar asked Nov 03 '09 02:11

jk.


People also ask

What are the application of PHP?

The use of PHP frameworks like CakePHP and CodeIgniter helps create ecommerce applications quickly and efficiently. Popular ecommerce platforms like Magento, OpenCart, Zen Cart, PrestaShop, AgoraCart, and Ubercart are all practical applications of PHP.

Is PHP free for commercial use?

Criticism. The PHP License is an open source license according to the Open Source Initiative, and a non-copyleft free software license according to the Free Software Foundation. The license is GPL-incompatible due to restrictions on the usage of the term PHP.


1 Answers

Obfuscating it can go a long way. Many users won't try to figure out the logic.

You can also add a registration key -- something that calls the mothership and acts like a dongle.

Edit: What I was going for with the registration: You can sell licenses by the domain, and require users to register their domain at your website after they buy.

One script I bought requires activation at their website. (The script is obfuscated as well.) Don't enter the domain, the software ceases working after a certain period of time. Transfer domains, and the software ceases to work.

I don't know the mechanics but the basic idea is that you want to guarantee that the script is running at the domain the purchaser said it was running at.

like image 103
John Avatar answered Sep 18 '22 19:09

John