您好,欢迎访问一九零五行业门户网

Phar PHP 打包工具

pharphp打包工具 无 #!/usr/bin/env php?phpdefine(phar_builder_version, 0.1.0);function usage($self, $ln = php_eol) { echo usage: {$self} phar [options]{$ln}; echo phar path to an existing phar archive or to-be-created archive.{$ln};
phar php 打包工具 #!/usr/bin/env phpstartbuffering(); $p->compress($compress); info(api version: . phar::apiversion()); info(file: {$path}); info(alias: {$alias}); info(compress: {$compress_type}); if (!empty($base_dir)) { info(build from: {$base_dir}); if ($regex) { info(filter: {$regex}); } $p->buildfromdirectory($base_dir, $regex); } if (!empty($files)) { foreach (explode(',', $files) as $file) { info(add file: {$file}); $p->addfile($file, basename($file)); } } if ($index && $webindex) { info(index: {$index}); info(web index: {$webindex}); $p->setdefaultstub($index, $webindex); } else if ($index) { info(index: {$index}); $p->setdefaultstub($index); } else if ($webindex) { info(web index: {$webindex}); $p->setdefaultstub(null, $webindex); } if ($stub) { info(stub: {$stub}); if (is_file($stub)) { $stub = file_get_contents($stub); } $p->setstub($stub); } $p->stopbuffering(); info(files: {$p->count()}); } catch (\exception $e) { error($e->getmessage());}
其它类似信息

推荐信息