swoole-cli
swoole-cli copied to clipboard
SWOOLE-CLI is a php binary distribution composed swoole & php-core & cli & fpm and mostly of common extensions.
# swoole-cli 各分支功能区别 > 构建环境 alpine 3.18 > [支持的扩展列表](https://github.com/swoole/swoole-cli/blob/main/docs/extensions.md) | 分支名称 | 与主分支的区别 | PHP 版本 | C 编译器 | |---------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------|--------------------|----------------| | [main](https://github.com/swoole/swoole-cli/tree/main) | 主分支是在 PHP源码基础之上裁剪、优化、添加新功能,[详细介绍](https://wenda.swoole.com/detail/108876) | 8.1.29(固定) | clang(固定)...
# 运行命令 ```php php bin/hyperf.php server:watch // 然后修改代码 触发热更新 ```  # php-v  # php -m  # php --ri swoole  我是使用自定义编译的php,因为swoole-cli里面没有ssh2扩展,但是我的项目里面有用到ssh2. 另外 ctrl+c 因为信号问题 程序不能正常终止掉
使用 experiment 分支 [添加扩展例子](https://github.com/swoole/swoole-cli/blob/experiment/sapi/src/builder/extension/aaa_example.php) [添加构建静态链接库例子](https://github.com/swoole/swoole-cli/blob/experiment/sapi/src/builder/library/aaa_example.php) 复制例子,在例子的基础上删改 即可