mcordingley/Regression

View on GitHub
build-phar.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

$archive = new Phar('regression.phar');

$base = dirname(__FILE__);

$archive->buildFromIterator(new RecursiveIteratorIterator(new RecursiveDirectoryIterator($base . '/src')), $base);
$archive->buildFromIterator(new RecursiveIteratorIterator(new RecursiveDirectoryIterator($base . '/vendor')), $base);

$archive->setStub(Phar::createDefaultStub('vendor/autoload.php'));