We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
A class for simplifying the PHAR build process.
The Box class provides additional features for the Phar building process:
as well as improving others:
Add it to your list of Composer dependencies:
$ composer require herrera-io/box=1.*
Building the Phar:
$box = Box::create('test.phar'); $box->buildFromDirectory('/path/to/dir'); $box->getPhar()->setStub($box->generateStub(null, '/path/to/dir/run.php'));
Running the Phar:
$ php test.phar That run script (/path/to/dir/run.php).