title: How to get all messages from the queue in php-amqplib (RabbitMQ)?
body: <p>Currently, I'm using <a href="https://github.com/php-amqplib/php-amqplib" rel="nofollow noreferrer">https://github.com/php-amqplib/php-amqplib</a> and I've read a lot of examples in this repository but I still don't understand how to get all the messages from the queue?</p>
  
  <p>I just need to receive some messages, group them by value and perform an action.</p>
  
  <p>Is it possible to do with RabbitMQ at all?</p>
  
  <p>How can I implement this in php?</p>