Swoole-Cli or statically compiled PHP is a binary distribution of PHP that integrates swoole, the PHP kernel, PHP-CLI, PHP-FPM, and several popular extensions.
Swoole-Cli or statically compiled PHP is a fully statically compiled and packaged, no operating system dependent on so dynamic link libraries, with very good portability, can be copied between any Linux system, download and use.
Static compilation has no dependencies
Swoole-cli or statically compiled PHP will all use statically compiled connections, libc and libstdc++ will use musl, and will include openSSL and curl libraries and extensions.
Users can modify the build script to add additional third-party extensions.
So that Swoole or PHP programs no longer depend on any system’s so, and can be copied and distributed between any Linux systems.
Static compilation is a more common compilation method in Golang, in the traditional Linux system, normal programs and libraries are basically dynamically linked, that is, different programs referencing the same library can be shared, reducing resource duplication.
Related references
https://zhuanlan.zhihu.com/p/581695339
https://zhuanlan.zhihu.com/p/459983471
https://www.workerman.net/q/10098
https://www.workerman.net/q/10099
Project source
https://github.com/crazywhalecc/static-php-cli
https://github.com/dixyes/phpmicro
https://github.com/walkor/static-php-cli
https://github.com/crazywhalecc/php-cli-helper
PHP static compilation version download
webman officially provides some static compiled versions of PHP, that is, it can run independently without deploying a PHP environment.
https://www.workerman.net/download
A library of various binaries
https://dl.zhamao.xin/php-bin/file/
Swoole-cli download

Leave a Reply