There is a nice tool available in php to archive php files in "phar" format to make it easily distribution and installation. It can make a single "phar" file of the whole php folder. http://www.php.net/manual/en/intro.phar.php
And phar files can be easily "unphar" to its original folder using tools like http://unphar.com
Now, my question is that is there any way that we can add some password or random salt while generating phar file so that it can not be unphar easily? My motive is to protect the php script from alteration.