Join 4,000+ others and never miss out on new tips, tutorials, and more.
Latest version:
pecl install openswoole-22.1.2 | composer require openswoole/core:22.1.5
Notice: Alias will be removed in the future version of Openswoole.
Each OpenSwoole Class has two types of alias, although it is recommended to use the namespace when accessing these classes:
Class | Alias | Alias |
---|---|---|
OpenSwoole\Server | swoole_server | Swoole\Server |
OpenSwoole\Timer | swoole_timer | Swoole\Timer |
OpenSwoole\Event | swoole_event | Swoole\Event |
OpenSwoole\Async | swoole_async | Swoole\Async |
OpenSwoole\Connection\Iterator | swoole_connection_iterator | Swoole\Connection\Iterator |
OpenSwoole\Exception | swoole_exception | Swoole\Exception |
OpenSwoole\Atomic | swoole_atomic | Swoole\Atomic |
OpenSwoole\Atomic\Long | swoole_atomic_long | Swoole\Atomic\Long |
OpenSwoole\Buffer | swoole_buffer | Swoole\Buffer |
OpenSwoole\Channel | swoole_channel | Swoole\Channel |
OpenSwoole\Client | swoole_client | Swoole\Client |
OpenSwoole\Client | swoole_client_coro | Swoole\Client |
OpenSwoole\Http\Client | swoole_http_client | Swoole\Http\Client |
OpenSwoole\Coroutine\Http\Client | swoole_http_client_coro | Swoole\Coroutine\Http\Client |
OpenSwoole\Http\Server | swoole_http_server | Swoole\Http\Server |
OpenSwoole\Http\Response | swoole_http_response | Swoole\Http\Response |
OpenSwoole\Http\Request | swoole_http_request | Swoole\Http\Request |
OpenSwoole\Http2\Client | swoole_http2_client | Swoole\Http2\Client |
OpenSwoole\Http2\Response | swoole_http2_response | Swoole\Http2\Response |
OpenSwoole\Lock | swoole_lock | Swoole\Lock |
OpenSwoole\Mmap | swoole_mmap | Swoole\Mmap |
OpenSwoole\MySQL | swoole_mysql | Swoole\MySQL |
OpenSwoole\MySQL\Exception | swoole_mysql_exception | Swoole\MySQL\Exception |
OpenSwoole\Process | swoole_process | Swoole\Process |
OpenSwoole\Redis | swoole_redis | Swoole\Redis |
OpenSwoole\Redis\Server | swoole_redis_server | Swoole\Redis\Server |
OpenSwoole\Serialize | swoole_serialize | Swoole\Serialize |
OpenSwoole\Server\Port | swoole_server_port | Swoole\Server\Port |
OpenSwoole\Table | swoole_table | Swoole\Table |
OpenSwoole\Table\Row | swoole_table_row | Swoole\Table\Row |
OpenSwoole\WebSocket\Server | swoole_websocket_server | Swoole\WebSocket\Server |
OpenSwoole\WebSocket\Frame | swoole_websocket_frame | Swoole\WebSocket\Frame |
OpenSwoole\Exception | swoole_exception | Swoole\Exception |
OpenSwoole\Error | swoole_error | Swoole\Error |
OpenSwoole\Server\Task | swoole_server_task | Swoole\Server\Task |
OpenSwoole\Coroutine | co | Swoole\Coroutine |
OpenSwoole\Coroutine::run | co::run | Swoole\Coroutine::run |
OpenSwoole\Coroutine::create | go | Swoole\Coroutine::create |