2017 © Pedro Peláez
 

library phar-builder

Build Phar like a boss

image

crodas/phar-builder

Build Phar like a boss

  • Thursday, March 31, 2016
  • by crodas
  • Repository
  • 1 Watchers
  • 5 Stars
  • 86 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 5 % Grown

The README.md

Phar-Builder

Build Phar like a boss., (*1)

This is a work in process., (*2)

How to install

You need to Composer and PHP with phar enabled., (*3)

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., (*4)

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)., (*5)

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

The Versions