Skip to content

pedromazala/phar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Phar Creator

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");'

About

Easy way to create .phar file of your project

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages