windows下hyperf swow开发,编译php_swow.dll

依赖包,curl 依赖zlib, libssh2, nghttp2

https://windows.php.net/downloads/php-sdk/deps/vs16/x64/

依赖包版本查看 stable和staging区别?

https://windows.php.net/downloads/php-sdk/deps/series/packages-8.1-vs16-x64-stable.txt

https://windows.php.net/downloads/php-sdk/deps/series/packages-8.1-vs16-x64-staging.txt

windows phpize.bat

https://windows.php.net/downloads/releases/php-devel-pack-8.1.27-nts-Win32-vs16-x64.zip

最新php-sdk

https://github.com/php/php-sdk-binary-tools/archive/refs/tags/php-sdk-2.2.0.zip

windows执行文件(最后运行测试)

https://windows.php.net/downloads/releases/php-8.1.27-nts-Win32-vs16-x64.zip

 

1. 安装好vs2019,【使用C++的桌面开发】
2. 带curl&openssl编译方法,解压依赖拓展到D:\php_source\deps,不需要文件夹名,都解压在一块
3. D:\php_source\php-sdk-binary-tools\phpsdk-vs16-x64.bat
4. D:\php_source\php-8.1.8-devel-vs16-x64\phpize.bat
5. configure.bat --enable-swow --enable-swow-ssl --enable-swow-curl --with-php-build=D:\php_source\deps
6. nmake
7. composer create-project hyperf/swow-skeleton=dev-master
8. 愉快地在windows环境下开发hyperf项目了

9. 修改 .\bin\hyperf.php 文件

Hyperf\Di\ClassLoader::init(handler: new Hyperf\Di\ScanHandler\NullScanHandler());

 

相关资料下载,QQ群:236833902

posted @ 2022-07-17 19:53  lobtao  阅读(695)  评论(0)    收藏  举报