PHP Conference Fukuoka 2025

Instalación

Utilizar --with-swoole[=DIR] durante la compilación de PHP.

Información sobre la instalación de estas extensiones PECL puede ser encontrada en el capítulo del manual titulado Instalación de extensiones PECL. Otra información como notas sobre nuevas versiones, descargas, fuentes de archivos, información sobre los mantenedores así como un CHANGELOG, pueden ser encontradas aquí : » https://pecl.php.net/package/swoole

add a note

User Contributed Notes 2 notes

up
5
lc at leocavalcante dot com
5 years ago
You can build a Docker image as well. Good alternative for Windows, despite WSL.```DockerfileFROM php:7.4.2-cliRUN apt-get update && apt-get install vim -y && \    apt-get install openssl -y && \    apt-get install libssl-dev -y && \    apt-get install wget -y && \    apt-get install git -y && \    apt-get install procps -y && \    apt-get install htop -yRUN cd /tmp && git clone https://github.com/swoole/swoole-src.git && \    cd swoole-src && \    git checkout v4.5.2 && \    phpize  && \    ./configure  --enable-openssl && \    make && make installRUN touch /usr/local/etc/php/conf.d/swoole.ini && \    echo 'extension=swoole.so' > /usr/local/etc/php/conf.d/swoole.iniRUN wget -O /usr/local/bin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v1.2.2/dumb-init_1.2.2_amd64RUN chmod +x /usr/local/bin/dumb-initRUN apt-get autoremove -y && rm -rf /var/lib/apt/lists/*ENTRYPOINT ["/usr/local/bin/dumb-init", "--", "php"]```
up
2
php dot anonymous1 at gmail dot com
6 years ago
to install swoole with mac os x open your terminal and use this commands git clone https://github.com/swoole/swoole-src.gitcd swoole-srcphpize./configuremake && make installalso find your swoole.so from folder swoole-src and move it in to your apache and add full path in php.ini like extension=your/full/path/swoole.so
To Top