• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

How to install ZeroMQ for PHP on an Alpine Linux container?

phpdockerzeromqalpineratchet


PHP Snippet 1:

FROM php:8.0-fpm-alpine
ENV COMPOSER_ALLOW_SUPERUSER 1
RUN set -eux && \
  apk add --update-cache --no-cache libzmq zeromq-dev zeromq && \
  apk add --update-cache --no-cache --virtual=.build-php-dependencies \
  autoconf gcc coreutils build-base git && \
  git clone https://github.com/mkoppanen/php-zmq.git && \
  cd php-zmq && \
  phpize && \
  ./configure && \
  make && \
  make install && \
  docker-php-ext-enable zmq && \
  apk del .build-php-dependencies

Related Snippets

How can I get user id from session in javascript?

How can I access an array/object?

Chunk and transpose a flat array into rows with a specific number of columns

add_action() function in wordpress not working [duplicate]

How to remove index.php and index from the URL using htaccess | PHP

zsh: command not found: php

Toggle between a textbox and a select using PHP

Autoloading classes in PHPUnit using Composer and autoload.php

How can I pass the list to the component variable in Laravel?

Hide email address with stars (*)

Laravel relationship belongsToMany with composite primary keys

how to make my own auto increment in php?

Remove country code from phone number?

Adding hreflang tags automatically in WordPress subdirectory multisite

Additional price based on cart item count in WooCommerce

About Contact Privacy policy Terms and conditions