swoole-cli icon indicating copy to clipboard operation
swoole-cli copied to clipboard

SWOOLE-CLI is a php binary distribution composed swoole & php-core & cli & fpm and mostly of common extensions.

Results 51 swoole-cli issues
Sort by recently updated
recently updated
newest added

# 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 // 然后修改代码 触发热更新 ``` ![image](https://github.com/swoole/swoole-cli/assets/30717763/efbeaba0-8546-490e-a1a8-49d328c118f9) # php-v ![image](https://github.com/swoole/swoole-cli/assets/30717763/169b1575-df55-49bc-845a-ef0cd77e8dc3) # php -m ![image](https://github.com/swoole/swoole-cli/assets/30717763/96542f68-3d94-4104-ab09-d3c1c611a3aa) # php --ri swoole ![image](https://github.com/swoole/swoole-cli/assets/30717763/fe04dae5-eda4-4fe6-9130-c21a0dfc3098) 我是使用自定义编译的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) 复制例子,在例子的基础上删改 即可