2.1 Upgrade Guide
Features and Changes
-
Requires
PHP>=8.1 -
Depends on
workerman/workerman:^5.1, while providing coroutine support for Workerman, refer to Webman Coroutines -
Added connection pool functionality for
webman/redis:^2.1,webman/cache:^2.1,webman/database:^2.1,webman/think-orm:^2.1, andwebman/think-cache:^2.1, automatically supporting both coroutine and non-coroutine environments.
Please back up your data before upgrading and execute the following command to upgrade
composer config -g --unset repos.packagist
composer require -W workerman/workerman:~5.1 workerman/webman-framework:~2.1
Upgrade Database
If you are using the following components, please execute the corresponding commands to upgrade
-
Laravel's
illuminate/databasecomposer require -W webman/database:~2.1 -
Laravel's
illuminate/rediscomposer require -W webman/redis:~2.1 -
Laravel's
illuminate/cachecomposer require -W webman/cache:~2.1 -
ThinkPHP's
topthink/think-ormcomposer require -W webman/think-orm:~2.1 -
ThinkPHP's
topthink/think-cachecomposer require -W webman/think-cache:~2.1 -
webman/redis-queue
composer require -W webman/redis-queue:~2.1 -
webman/log
composer require -W webman/log:~2.1