lsg/php-rabbitmq-bus

There is no license information available for the latest version (v1.0.0) of this package.

v1.0.0 2024-05-22 08:44 UTC

This package is auto-updated.

Last update: 2025-02-22 10:49:12 UTC


README

这是一个基于amqp封装的rabbitmq独立的代码包

配置文件lib/MessageBus/rabbitmq.php

<?php
return [
    'AMQP' => [
        'host' => "localhost",
        'port'=>"5672",
        'login'=>"admin",
        'password'=>"123456",
        'vhost'=>"my_vhost"
    ],
];

使用方法

git clone https://github.com/linsonggao/php-rabbitmq-bus
composer install

1.开启监听demo

php start.php

2.生产demo

php produce.php