1 Star 0 Fork 26

itml / php-console

forked from inhere / php-console 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
phar.build.inc 847 Bytes
一键复制 编辑 原始数据 按行查看 历史
inhere 提交于 2020-05-25 10:36 . update some for code
<?php
/**
* Created by PhpStorm.
* - the is a config file for compile phar package.
* User: Inhere
* Date: 2018/1/26 0026
* Time: 22:11
* @var \Inhere\Console\Component\PharCompiler $compiler
*/
// config
$compiler
// ->stripComments(false)
->setShebang(true)
->addExclude([
'demo',
'test',
'tmp',
])
->addFile([
'LICENSE',
'composer.json',
'README.md',
'test/boot.php',
])
->setCliIndex('examples/app')
// ->setWebIndex('web/index.php')
// ->setVersionFile('config/config.php')
;
// Console 下的 Command Controller 命令类不去除注释,注释上是命令帮助信息
$compiler->setStripFilter(static function ($file) {
/** @var \SplFileInfo $file */
$name = $file->getFilename();
return false === strpos($name, 'Command.php') && false === strpos($name, 'Controller.php');
});
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/flywit/php-console.git
git@gitee.com:flywit/php-console.git
flywit
php-console
php-console
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891