• 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

Hide specific products from unlogged users based in product category in WooCommerce

how can I set a session variable in Drupal 8 and get it in a php script?

PDOException: PDO::__construct(): php_network_getaddresses: getaddrinfo failed: no such host known

How to get median and quartiles/percentiles of an array in JavaScript (or PHP)?

laravel controller function parameters

Magento 2 - How to add new block to admin panel in product page?

PhP how to calculate moments with variables rows

Dynamic table in HTML using MySQL and php

How to unlink image from folder?

Laravel Schedule not sending email

Edit XML in HTML form and submit to self

Cannot retrieve error message using Symfony HttpClient if the response is not "ok"

PHP code for generating decent-looking coupon codes (mix of letters and numbers)

Ajax GET request fails in laravel 8

Pagekite error: FAIL: localhost:8080 is down

About Contact Privacy policy Terms and conditions