Even working with free software, we often need to protect our code.
There are good tools there (proprietary) for this, is that I use Ioncube.
But even if go deep in the proprietary world, you must use licenses with expiration limit per machine, domain, etc..
Herein only the proprietary tools provide that, but are expensive (the Ioncube itself).
Researching the subject, I found an old class, but very well done. I updated the code, applied codding standards and some docson and PADL was “reborn”: PHPAplication Distribution Licensing.
Hope it is not a heresy to disclose the projecte, that despite being free, it serves for proprietary issues. But I consider this important, and hopefully it will be useful.
Available for PHP 5.2 and PHP 5.3 (with namespace).