intermaterium/phpzmq 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

intermaterium/phpzmq

Composer 安装命令:

pie install intermaterium/phpzmq

包简介

ZeroMQ is a software library that lets you quickly design and implement a fast message-based applications

README 文档

README

PHP bindings for 0MQ. The documentation is available here

This is a hardfork of the PHP Extension, updated for a PHP's newer extension sensibilities and API functions. As such, support for versions of PHP older than 8.1 and versions of libzmq below version 4 have been dropped.

Additionally the support for libczmq has been dropped as it wasn't documented and wasn't used at $work. Will be added back at a later date should it be required.

Prerequisites

  • libzmq 4.0.0 and above
  • PHP 8.1 and above

Insallation (PIE)

You can install this extension using PIE

pie install intermaterium/phpzmq

Installation (Build from source)

You can also use the old phpize method to install the extension

git clone --recursive --depth=1 https://github.com/chrisBirmingham/phpzmq.git
cd phpzmq
phpize
./configure
make
make install

The API is roughly as follows:

<?php

/* Create new queue object */
$queue = new ZMQSocket(new ZMQContext(), ZMQ::SOCKET_REQ, "MySock1");

/* Connect to an endpoint */
$queue->connect("tcp://127.0.0.1:5555");

/* send and receive */
var_dump($queue->send("hello there, using socket 1")->recv());

?>

统计信息

  • 总下载量: 155
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: C

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2026-05-31

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固