Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/php
- <?php
- require_once __DIR__ . '/vendor/autoload.php';
- use PhpAmqpLib\Connection\AMQPStreamConnection;
- use PhpAmqpLib\Message\AMQPMessage;
- $connection = new AMQPStreamConnection('localhost', 5672, 'guest', 'guest');
- $channel = $connection->channel();
- $channel->queue_declare('hello', false, false, false, false);
- print_r($channel->basic_get('hello', true));
- $channel->close();
- $connection->close();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement