4 Star 10 Fork 5

李紫电 / easyswoole_admin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
easyswoole 559 Bytes
一键复制 编辑 原始数据 按行查看 历史
tiandian 提交于 2019-03-31 17:02 . easyswoole简易后台管理系统
#!/usr/bin/env php
<?php
use EasySwoole\EasySwoole\Command\CommandRunner;
define('IN_PHAR', boolval(Phar::running(false)));
define('RUNNING_ROOT', realpath(getcwd()));
define('EASYSWOOLE_ROOT', IN_PHAR ? 'phar://' . Phar::running(false) : realpath(getcwd()));
$file = EASYSWOOLE_ROOT.'/vendor/autoload.php';
if (file_exists($file)) {
require $file;
}else{
die("include composer autoload.php fail\n");
}
$args = $argv;
//trim first command
array_shift($args);
$ret = CommandRunner::getInstance()->run($args);
if(!empty($ret)){
echo $ret."\n";
}
PHP
1
https://gitee.com/tiandian/easyswoole_admin.git
git@gitee.com:tiandian/easyswoole_admin.git
tiandian
easyswoole_admin
easyswoole_admin
master

搜索帮助