How to determine the number of messages in the queue from the php script? Here is my code:
<?php require_once __DIR__ . '/vendor/autoload.php'; use PhpAmqpLib\Connection\AMQPStreamConnection; use PhpAmqpLib\Message\AMQPMessage; $connection = new AMQPStreamConnection('localhost', 5672, 'user', 'pass'); $channel = $connection->channel(); $channel->basic_consume('sms_inbox', '', true, false, false, false, $callback);