1. Go to this page and download the library: Download ryaremenko/amqp 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/ */
ryaremenko / amqp example snippets
class BaseConnection extends AmqpConnection
{
protected function setConnectionOptions(): AmqpConnectionOptions
{
return (new AmqpConnectionOptions())
->setHost('127.0.0.1')
->setPort(5672)
->setLogin('guest')
->setPassword('guest');
}
}