Build Phar like a boss.
This is a work in process.
You need to Composer and PHP with phar enabled.
git clone https://github.com/crodas/Phar-Builder.git
cd Phar-Builder
composer install
php cli.php installBuild phar files should be really simple.
You need to add a spec.yml in your project. It needs two parameters (name and include). There also some extra parameter like cli (the script to execute from the console).
name: phar-builder.phar
files:
- src: { name: "*.php" }
- vendor: { exclude: ["Tests", "tests"] }
main: cli.php##Todo
- Unit-tests
- Docs
- JSON reader as well