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