jyil/aliwaremq

1.2.0 2020-03-10 12:52 UTC

This package is auto-updated.

Last update: 2024-04-10 21:53:37 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.