- Output defaults to JSON
php-zmq in PECL is outdated and has issues with php7/8. See:
To workaround this, choose one:
apk add php7-pecl-zmq # alpine
apt-get install php-zmq # debian (remains untested)
php8-pecl-zmq
isn't available for Alpine v3.13, but can be found in
edge/testing
:
apk add php8-pecl-zmq \
--repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing/
git clone https://github.com/zeromq/php-zmq
cd php-zmq
./configure
make && sudo -c "make install"
If you are using phpbrew, you can install the extension with:
phpbrew ext install github:zeromq/php-zmq master
- Confirm that php is reporting the extension
- Make sure you add
extension=zmq
to thephp.ini
file - Modify
extension_dir
if needed
- Make sure you add
php -m | grep zmq # php hould report the "zmq" extension
../bin/bootstrap -p ../proto/ -l php -d src/build/gen/
composer install
./bin/demo [args...]