当前仓库属于暂停状态,部分功能使用受限,详情请查阅 仓库状态说明
1 Star 0 Fork 132

啊( ⊙ o ⊙ )啊! / swoft
暂停

forked from swoft / swoft 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
phar.build.inc 853 Bytes
一键复制 编辑 原始数据 按行查看 历史
inhere 提交于 2018-03-26 16:20 . up: update some config for websocket
<?php
/**
* Created by PhpStorm.
* - the is a config file for compile phar package.
* User: Inhere
* Date: 2018/1/26 0026
* Time: 22:11
* @var \Swoft\Devtool\PharCompiler $compiler
*/
// config
$compiler
->stripComments(true)
->setShebang(true)
->addSuffix('.json')// for add composer.json
->addExclude([
'test',
'tests',
'runtime',
'eaglewu',
])
->addFile([
'LICENSE',
'README.md',
])
->setCliIndex('bin/swoft')
// ->setWebIndex('web/index.php')
// ->setVersionFile('config/config.php')
;
// Command Controller 命令类不去除注释,注释上是命令帮助信息
$compiler->setStripFilter(function ($file) {
/** @var \SplFileInfo $file */
$path = $file->getPath();
if (strpos($path, 'swoft')) {
return false;
}
return false === strpos($file->getFilename(), 'Command.php');
});
PHP
1
https://gitee.com/kx0/swoft.git
git@gitee.com:kx0/swoft.git
kx0
swoft
swoft
master

搜索帮助