Skip to content

message/php-phar-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHAR Boilerplate

This boilerplate helps you to create PHAR archives from you CLI commands. Same as JAR in Java.

##Installation

Install Box.

curl -LSs https://box-project.github.io/box2/installer.php | php
chmod +x box.phar
mv box.phar /usr/local/bin/box

Install Composer

curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
chmod +x /usr/local/bin/composer

Fetch dependencies

composer install

Development

src/Application/Command path is automatically scanned for commands. Name convention *Command.php. To learn more about commands see manual.

There is no reason to build your application each time, so run bin/boilerplate command, and you will get same result.

php bin/boilerplate

or mark file as executable with chmod +x bin/boilerplate and run

./bin/boilerplate

Build

box build

Run

php boilerplate.phar

or mark file as executable with chmod +x boilerplate.phar and run

./boilerplate.phar

About

PHAR Boilerplate

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages