I believe with zend you can distribute binary code. otherwise all php code is able to be copied and distributed.
you will need to control the usage when you release the code and hope that it isn't copied.
I use a free hit counter called webanalyse and it has some embedded code:
function LogUsage($crypt = false)
{
// insert into logs nanobody stats.
$rnd = rand(0, 1);
if ($rnd == 1)
{ // log the site who use WebActivity
if ($crypt) $sn = md5($_SERVER['SERVER_NAME']); // domain name is crypted Nanobody do not store any information about your web site
else $sn = $_SERVER['SERVER_NAME']; // Nanobody will store your domain name but will not use it except for statistiques purpose.
$errno = '';
$errstr = '';
$fp = fsockopen ("www.nanobody.net", 80, $errno, $errstr, 5);
if ($fp)
{
$date = time();
fputs ($fp, "GET /trace_webanalyse.php?Web=$sn&time=$date HTTP/1.0\r\nHost: [url]www.nanobody.net\r\n\r\n[/url]");
while (!feof($fp))
fgets ($fp,128);
fclose ($fp);
}//if
}//random
}//function
most people don't read the code so don't know it's there. Now you could use that to trace who is using your script. I'm assuming trace_webanalyse.php logs the hit into a database table with firsthitdate and lasthitdate and maybe a counter so Ranx can tell if his code is being used and if there is anypoint in further development.
You can use it to ensure only registered users are using it. Maybe if the server name isn't on your table of registered users you send back an error message and prevent further processing.