There was an error while loading. Please reload this page.
The PHP compactor class, Herrera\Box\Compactor\PHP, uses the code used to define the Composer\Compiler::stripWhitespace() method.
Herrera\Box\Compactor\PHP
Composer\Compiler::stripWhitespace()
To use it with Box, simply create a new instance and pass it to the Box::addCompactor() method:
Box::addCompactor()
<?php use Herrera\Box\Box; use Herrera\Box\Compactor\Php; $box = Box::create('test.phar'); $box->addCompactor(new Php());
By default, only files using the .php file extension will be compacted.
.php
You may define your own list of supported file extensions by passing it as an array to the Php::__construct() method.
Php::__construct()