PHP code example of clivern / rabbitmq-hole
1. Go to this page and download the library: Download clivern/rabbitmq-hole library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
clivern / rabbitmq-hole example snippets
use Clivern\RabbitMQHole\Client;
use Clivern\RabbitMQHole\Queues;
$client = new Client("http://rabbitmq.com:15672", "guest", "guest");
$client = new Client("http://rabbitmq.com:15672", "guest", "guest");
$queues = new Queues($client);
# To get queues list
$queues->getQueues(); // [{....}]