Rabbitmq error while connecting

I got this error when I try to connect using php-amqp: Fatal error: Class 'AMQPConnection' not found in

$credentials =array('host' => 'localhost','port' => 5672); $cnn = new AMQPConnection($credentials); $cnn->connect(); 
+4
source share
1 answer

It looks like you did not install the AMQP PECL extension . This PECL extension is not part of PHP by default, so you will need to compile it and install it using the pecl tool.

+5
source

Source: https://habr.com/ru/post/901927/


All Articles