• 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 use PHPCBF to fix one issue at a time?

401 Unauthorized only occurring on some pages in Laravel 8

How to show a popup modal in codeIgniter?

unable to load your default controller on Codeigniter

Codeigniter, Severity: error --> Exception: Too few arguments to function, admin dashboard shows HTTP error 500

Laravel views are showing from cache on one server but works fine on other server

Artisan, creating tables in database

PHP/HTML: Creating A SubMenu

jwt decode throws Invalid argument supplied for foreach() on php-jwt and codeignitor 4

Xdebug in Laravel is not working with VSCode

Destroy session upon refresh

500 (Internal Server Error) with Laravel & Docker [duplicate]

html-php form submission after validation through JavaScript [closed]

Parsing JSON File to array in PHP

Entity provider not working in security.yml php symfony3.4 ({"code":401,"message":"bad credentials"}.)

About Contact Privacy policy Terms and conditions