Build Phar like a boss

dev-master 2016-03-31 08:48 UTC

This package is auto-updated.

Last update: 2022-07-12 14:21:16 UTC


Build Phar like a boss.

This is a work in process.

How to install

You need to Composer and PHP with phar enabled.

git clone
cd Phar-Builder
composer install
php cli.php install


Build 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
    - src: { name: "*.php" }
    - vendor: { exclude: ["Tests", "tests"] }
main: cli.php


  1. Unit-tests
  2. Docs
  3. JSON reader as well