• 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

Laravel Route issues with Route order in web.php

CodeIgniter 3 is generating a session file on each request, why?

Symfony Error: "An exception has been thrown during the rendering of a template"

WordPress + Nginx on non-standard port behind AWS ELB results in broken links

Transpose and flatten two-dimensional indexed array where rows may not be of equal length

PHP: convert all UTF-8 characters to HTML entities

Insert multidimensional array to codeigniter cart

How to extract price from given url using Xpath?

How to skip cart page on woocomerce for certain products only?

Laravel implode array items to new lines

Form Validation and Submission to database

Creating a config file in PHP

How to delete old images from public folder on update using Laravel

Call to undefined function openssl_decrypt

Pagekite error: FAIL: localhost:8080 is down

About Contact Privacy policy Terms and conditions