💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
是一个能让你快速设计、开发基于消息应用的函数库 [官网](https://zeromq.org/download/) 要想php使用0mq必须先安装ZeroMQ,然后在安装php扩展 下载解压后,安装三部曲 ~~~ ./configure --prefix=/usr/locla/zmq4.2.1 make make install ~~~ 扩展下载: [https://pecl.php.net/package/zmq](https://pecl.php.net/package/zmq) [https://github.com/zeromq/php-zmq](https://github.com/zeromq/php-zmq) * [ZMQ](https://www.php.net/manual/en/class.zmq.php)— ZMQ类 * [ZMQ :: \_\_ construct](https://www.php.net/manual/en/zmq.construct.php)— ZMQ构造函数 * [ZMQContext](https://www.php.net/manual/en/class.zmqcontext.php)— ZMQContext类 * [ZMQContext :: \_\_ construct](https://www.php.net/manual/en/zmqcontext.construct.php)—构造一个新的ZMQContext对象 * [ZMQContext :: getOpt](https://www.php.net/manual/en/zmqcontext.getopt.php)—获取上下文选项 * [ZMQContext :: getSocket](https://www.php.net/manual/en/zmqcontext.getsocket.php)—创建一个新的套接字 * [ZMQContext :: isPersistent](https://www.php.net/manual/en/zmqcontext.ispersistent.php)—上下文是否持久 * [ZMQContext :: setOpt](https://www.php.net/manual/en/zmqcontext.setopt.php)—设置套接字选项 * [ZMQSocket](https://www.php.net/manual/en/class.zmqsocket.php)— ZMQSocket类 * [ZMQSocket :: bind](https://www.php.net/manual/en/zmqsocket.bind.php)—绑定套接字 * [ZMQSocket :: connect](https://www.php.net/manual/en/zmqsocket.connect.php)—连接套接字 * [ZMQSocket :: \_\_ construct](https://www.php.net/manual/en/zmqsocket.construct.php)—构造一个新的ZMQSocket * [ZMQSocket :: disconnect](https://www.php.net/manual/en/zmqsocket.disconnect.php)—断开套接字 * [ZMQSocket :: getEndpoints](https://www.php.net/manual/en/zmqsocket.getendpoints.php)—获取端点列表 * [ZMQSocket :: getPersistentId](https://www.php.net/manual/en/zmqsocket.getpersistentid.php)—获取持久性ID * [ZMQSocket :: getSocketType](https://www.php.net/manual/en/zmqsocket.getsockettype.php)—获取套接字类型 * [ZMQSocket :: getSockOpt](https://www.php.net/manual/en/zmqsocket.getsockopt.php)—获取套接字选项 * [ZMQSocket :: isPersistent](https://www.php.net/manual/en/zmqsocket.ispersistent.php)—套接字是否持久 * [ZMQSocket :: recv](https://www.php.net/manual/en/zmqsocket.recv.php)—收到一条消息 * [ZMQSocket :: recvMulti](https://www.php.net/manual/en/zmqsocket.recvmulti.php)—接收多部分消息 * [ZMQSocket :: send](https://www.php.net/manual/en/zmqsocket.send.php)—发送消息 * [ZMQSocket :: sendmulti](https://www.php.net/manual/en/zmqsocket.sendmulti.php)—发送多部分消息 * [ZMQSocket :: setSockOpt](https://www.php.net/manual/en/zmqsocket.setsockopt.php)—设置套接字选项 * [ZMQSocket :: unbind](https://www.php.net/manual/en/zmqsocket.unbind.php)—取消绑定套接字 * [ZMQPoll](https://www.php.net/manual/en/class.zmqpoll.php)— ZMQPoll类 * [ZMQPoll :: add](https://www.php.net/manual/en/zmqpoll.add.php)—将项目添加到投票集中 * [ZMQPoll :: clear](https://www.php.net/manual/en/zmqpoll.clear.php)—清除轮询集 * [ZMQPoll :: count](https://www.php.net/manual/en/zmqpoll.count.php)—对投票集中的项目进行计数 * [ZMQPoll :: getLastErrors](https://www.php.net/manual/en/zmqpoll.getlasterrors.php)—获取轮询错误 * [ZMQPoll :: poll](https://www.php.net/manual/en/zmqpoll.poll.php)—轮询项目 * [ZMQPoll :: remove](https://www.php.net/manual/en/zmqpoll.remove.php)—从投票集中删除项目 * [ZMQDevice](https://www.php.net/manual/en/class.zmqdevice.php)— ZMQDevice类 * [ZMQDevice :: \_\_ construct](https://www.php.net/manual/en/zmqdevice.construct.php)—构造一个新设备 * [ZMQDevice :: getIdleTimeout](https://www.php.net/manual/en/zmqdevice.getidletimeout.php)—获取空闲超时 * [ZMQDevice :: getTimerTimeout](https://www.php.net/manual/en/zmqdevice.gettimertimeout.php)—获取计时器超时 * [ZMQDevice :: run](https://www.php.net/manual/en/zmqdevice.run.php)—运行新设备 * [ZMQDevice :: setIdleCallback](https://www.php.net/manual/en/zmqdevice.setidlecallback.php)—设置空闲回调函数 * [ZMQDevice :: setIdleTimeout](https://www.php.net/manual/en/zmqdevice.setidletimeout.php)—设置空闲超时 * [ZMQDevice :: setTimerCallback](https://www.php.net/manual/en/zmqdevice.settimercallback.php)—设置计时器回调函数 * [ZMQDevice :: setTimerTimeout](https://www.php.net/manual/en/zmqdevice.settimertimeout.php)—设置计时器超时