jyil / aliwaremq
aliwaremq
Installs: 36
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/jyil/aliwaremq
Requires
- php: >=7.2
- php-amqplib/php-amqplib: ^2.9
Requires (Dev)
- php: >=7.2
- phpunit/phpunit: ~6.5
README
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.