jyil/aliwaremq

aliwaremq

Maintainers

Package info

github.com/jyiL/aliwaremq

pkg:composer/jyil/aliwaremq

Statistics

Installs: 36

Dependents: 0

Suggesters: 0

Stars: 5

Open Issues: 0

1.2.0 2020-03-10 12:52 UTC

This package is auto-updated.

Last update: 2026-03-11 01:55:48 UTC


README

Latest Stable Version Total Downloads License Build Status

Support

Composer

composer require jyil/aliwaremq

Example

$provider = new AliyunCredentialsProvider([
    'host' => '*',
    'port' => '*',
    'virtualHost' => '*',
    'accessKey' => '*',
    'accessSecret' => '*',
    'resourceOwnerId' => '*',
]);

// send
$provider->send('queue', 'Hello World');

$provider->send('queue', 'Hello World', 'exchange', 'exchangeType');

// receive
$provider->receive('queue', '', function ($msgBody) {
    echo 'body---' . $msgBody;
});

$provider->receive('queue', '', function ($msgBody) {
    echo 'body---' . $msgBody;
}, 'exchange', 'exchangeType');

License

Aliwaremq is open-sourced software licensed under the MIT License.