Create a phar of your project folder
php index.php -r=~/my-projects/hero/Create a phar with your project folder and define the index.php like the stub
php index.php -r=~/my-projects/hero/ -s=index.phpCreate a phar without any comments
php index.php -r=~/my-projects/hero/ -s=index.php -c=trueCreate your phar and save the output on dist dir of your app
php index.php -r=~/my-projects/hero/ -s=index.php -o=~/my-projects/hero/distDo all and show what is doing
php index.php -r=~/my-projects/hero/ -s=index.php -o=~/my-projects/hero/dist/hero.phar -v=trueUse a "." (dot) in -o parameter
php index.php -r=~/my-projects/hero/ -s=index.php -o=~./dist/hero.phar -v=trueExtract phar file
php -r '$phar = new Phar("phar20161212C.phar"); $phar->extractTo("./phar20161212C");'