crodas/phar-builder

Build Phar like a boss

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

This package is auto-updated.

Last update: 2024-12-12 19:37:59 UTC


README

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 https://github.com/crodas/Phar-Builder.git
cd Phar-Builder
composer install
php cli.php install

Why?

Build phar files should be really simple.

How?

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

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