Skip to content

jyiL/aliwaremq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aliwaremq

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.

About

Supported(Laravel/Lumen) - aliwaremq 阿里云消息队列AMQP(RabbitMQ)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages