Projeto com a finalidade de gerar arquivos .phar de diretórios

0.0.2 2016-03-16 10:03 UTC

This package is not auto-updated.

Last update: 2024-11-21 21:24:45 UTC


README

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.php

Create a phar without any comments

php index.php -r=~/my-projects/hero/ -s=index.php -c=true

Create 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/dist

Do all and show what is doing

php index.php -r=~/my-projects/hero/ -s=index.php -o=~/my-projects/hero/dist/hero.phar -v=true

Use a "." (dot) in -o parameter

php index.php -r=~/my-projects/hero/ -s=index.php -o=~./dist/hero.phar -v=true

Extract phar file

php -r '$phar = new Phar("phar20161212C.phar"); $phar->extractTo("./phar20161212C");'