swoole

Coroutine-based concurrency library for PHP


Coroutine-based concurrency library for PHP
- event-driven
- coroutines
- asynchronous non-blocking
- built-in tcp/http/websocket/http2 server
- coroutine tcp/http/websocket client
- coroutine mysql client
- coroutine redis client
- coroutine read/write file system
- coroutine dns lookup
- automatically replace blocking functions to non-blocking
- support IPv4/IPv6/UnixSocket/TCP/UDP
- support SSL/TLS encrypted transmission

License: Apache2.0

Latest releases

Version Release Download
5.0.0 2022-08-01 swoole-5.0.0.tgz
4.8.11 2022-07-12 swoole-4.8.11.tgz
4.8.10 2022-06-22 swoole-4.8.10.tgz
4.8.9 2022-04-17 swoole-4.8.9.tgz
4.8.8 2022-03-16 swoole-4.8.8.tgz
Show all releases

Changelog

Version Message
5.0.0 Added
---
* Added max_concurrency option for Server
* Added max_retries option for Coroutine\Http\Client
* Added name_resolver global option
* Added upload_max_filesize option for Server
* Added Coroutine::getExecuteTime()
* Added SWOOLE_DISPATCH_CONCURRENT_LB dispatch_mode for Server

Changed
---
* Enhanced type system, added types for parameters and return values of all functions
* Optimized error handling, all constructors will throw exceptions when fail
* Adjusted the default mode of Server, the default is SWOOLE_BASE mode
* Migrate pgsql coroutine client to core
* Contains all bugfixes from the 4.8.x branch

Removed
---
- Removed PSR-0 style class names
- Removed the automatic addition of Event::wait() in shutdown function
- Removed Server::tick/after/clearTimer/defer aliases
- Removed --enable-http/--enable-swoole-json, adjusted to be enable by default

Deprecated
---
- Deprecated Coroutine\Redis and Coroutine\MySQL
4.8.11 - Supports intel CET
- Fixed #4712
- Fixed crash issue when pdo persistent connection throws exception
- Added Server::$ssl property
- Added enable-cares option to pecl
- Refactor multipart_parser
- Fixed incorrect error message in Server::close()
4.8.10 - Reset value to 1ms when stream_select timeout is less than 1ms
- Fixed #4693
- Fixed #4699
4.8.9 - Added support http_auto_index for http2 server
- Fixed #4657
- Fixed the stream_select hook function memory leak
- Optimized cookies parser
4.8.8 - Reduce SW_IPC_BUFFER_MAX_SIZE to 64k
- Respect SETTINGS_HEADER_TABLE_SIZE http2 setting (#4635)
- Fixed #4639
- Fixed http2 server NPN errors
Show complete changelog