General function

Env

Get the value of the environment variable

 function env(string $key = null, $default = null): mixed 

Alias

Get the value of the path alias

 function alias(string $key): string 

Config

Get the value of the app configuration

 function config(string $key, $default = null): mixed 

Sgo

Open a new coroutine

 function sgo(callable $callable, bool $wait = true): void 

Server

 function server(): \Swoft\Server\Server 

Context

Get context object

 function context(): ContextInterface 
/docs/2.x/en/common/generic.html
progress-bar