fever has a similar model, you register, download software (also PHP), and then get an activation key. You can see how it works in the demo video (near the end).
If you give the source code, you cannot prevent someone who has programming knowledge from fixing any protection / copy protection.
One thing I can think of is distributing a compiled program or C / C ++ extension, which the PHP application connects to check the license. This compiled part can then call home, etc. Even this can be easily circumvented, though.
You can see some other ideas in these similar questions:
- Obfuscator code for php?
- The best solution for securing PHP code without encryption
Basically, if you give away the code that you are participating in an arms race, putting an increasingly sophisticated copy protection that can always be broken at the end. You have to decide how much effort is worth. I personally will not invest much effort.
Steven kryskalla
source share