PHP_Archive allows you to create a single .phar file containing an entire application. WWW: https://pear.php.net/package/PHP_Archive