2 Unstar Star 0 Fork 0

白磊 / easyswoole-blogPHP

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Nothing here. spread retract

Clone or download
easyswoole 730 Bytes
Copy Edit Web IDE Raw Blame History
白磊 authored 2020-07-03 17:24 . no message
#!/usr/bin/env php
<?php
use EasySwoole\EasySwoole\Command\CommandRunner;
defined('IN_PHAR') or define('IN_PHAR', boolval(\Phar::running(false)));
defined('RUNNING_ROOT') or define('RUNNING_ROOT', realpath(getcwd()));
defined('EASYSWOOLE_ROOT') or define('EASYSWOOLE_ROOT', IN_PHAR ? \Phar::running() : realpath(getcwd()));
$file = EASYSWOOLE_ROOT.'/vendor/autoload.php';
if (file_exists($file)) {
require $file;
}else{
die("include composer autoload.php fail\n");
}
if(file_exists(EASYSWOOLE_ROOT.'/bootstrap.php')){
require_once EASYSWOOLE_ROOT.'/bootstrap.php';
}
$args = $argv;
//trim first command
array_shift($args);
$ret = CommandRunner::getInstance()->run($args);
if(!empty($ret)){
echo $ret."\n";
}

Comment ( 0 )

Sign in for post a comment

PHP
1
https://gitee.com/bailei123/easyswoole.git
git@gitee.com:bailei123/easyswoole.git
bailei123
easyswoole
easyswoole-blog
master

Search