public static function addCompress(\Phar $phar, $configuration)
    {
        if ($configuration === false) {
            return;
        }
        echo "\nAdd compress";
        foreach ($configuration as $compress) {
            if (in_array($compress, [\Phar::NONE, \Phar::GZ, \Phar::BZ2], true) === false) {
                throw new InvalidConfigException("Invalid configuration. Unknown compress type '{$compress}'.");
            }
            if (\Phar::canCompress($compress) === true) {
                $phar->compress($compress);
            }
        }
    }