2017 © Pedro Peláez
 

library pharaoh

Library to simplify .phar build scripts

image

addvilz/pharaoh

Library to simplify .phar build scripts

  • Sunday, February 7, 2016
  • by addvilz
  • Repository
  • 1 Watchers
  • 0 Stars
  • 114 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Addvilz/pharaoh

Library to simplify .phar build scripts., (*1)

Usage:, (*2)

Create a new file, for example, build.php:, (*3)

#!/usr/bin/env php
<?php

$composer = (new \Symfony\Component\Finder\Finder())
    ->files()
    ->ignoreVCS(true)
    ->name('*.php')
    ->exclude(['test', 'tests', 'spec'])
    ->in(__DIR__ . '/vendor/');

$src = (new \Symfony\Component\Finder\Finder())
    ->files()
    ->ignoreVCS(true)
    ->name('*.php')
    ->in(__DIR__ . '/src/');

$builder = (new \Addvilz\Pharaoh\Builder('myapp.phar', __DIR__, __DIR__))
    ->addFinder($composer)
    ->addFinder($src)
//    ->addFile('LICENSE')
//    ->addFile('README.md')
    ->build('index.php') // file that contains the "index" code of your app
;

The Versions

07/02 2016

dev-master

9999999-dev

Library to simplify .phar build scripts

  Sources   Download

Apache-2.0

The Requires

 

07/02 2016

v1.0.3

1.0.3.0

Library to simplify .phar build scripts

  Sources   Download

Apache-2.0

The Requires

 

06/02 2016

v1.0.2

1.0.2.0

Library to simplify .phar build scripts

  Sources   Download

Apache-2.0

The Requires

 

06/02 2016

v1.0.1

1.0.1.0

Library to simplify .phar build scripts

  Sources   Download

Apache-2.0

The Requires

 

05/02 2016

v1.0.0

1.0.0.0

Library to simplify .phar build scripts

  Sources   Download

Apache-2.0

The Requires