Added script to generate a Phar file and added --test-phar option to test