hkuan / mq
From AMQP adapter to php-amqplib
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/hkuan/mq
Requires
- php: >=5.3.3
This package is not auto-updated.
Last update: 2025-10-12 09:02:13 UTC
README
From AMQP adapter to php-amqplib,This package is used for projects "haoshiqi"
Install
If you have Composer, just include Macaw as a project dependency in your composer.json
. If you don't just install it by downloading the .ZIP file and extracting it to your project directory.
require: {
"hkuan/amqp_adapterr": "dev-master"
}
Examples
First, use
the Macaw namespace:
producer: use \Hkuan\Mq\Amqadapter; DWDMq::getInstance()->send('test','2222');
consumer: use \Hkuan\Mq\Amqadapter; DWDMq::getInstance()->get('test', 'deal'); $i = 1; function deal($envelope, $queue) { $msg = $envelope->getBody(); echo $msg.PHP_EOL; }