#connect to AMQP broker at example.com
use PhpAmqpLib\Connection\AMQPStreamConnection;
$amqp = new AMQPStreamConnection('example.com', 5672, 'user', 'pwd','/host');
#SSL or secure connection
use phpAmqpLib\Connection\AMQSSLConnection;
$amqp = new AMQPSSLConnection('domain', 5671, 'user', 'pwd','/host',['dsn'=>'amqps:']);