• 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 to insert Google Adsense Code in PHP script?

Is there a way to use the same parameter into multiple place in the same query with Eloquent? [duplicate]

javascript html popup window

How to prevent phpmailer sending embedded image as an attachment on Gmail?

Laravel 5.2: Unable to locate factory with name [default]

how to display a view on laravel 8 and not have a 404 NOT FOUND page?

Symfony 4: "Autowire: you should configure its value explicitly."

Combine array with same value and add other [duplicate]

Symfony autowiring issues since docker update

how to redirect the user back to desired URL after login page in PHP?

Insert a DIV after the 6th product only once in WooCommerce category archives

Upgrade PHP on AWS Linux

Increase value by 1 on button click

Get keys from associative array [duplicate]

zsh: command not found: php

About Contact Privacy policy Terms and conditions