(PECL stomp >= 0.1.0)
Представляет связь между PHP и Stomp совместимым брокером сообщений (Message Broker).
$broker = ini_get("stomp.default_broker_uri"),$username = ?,$password = ?,$headers = ?In some cases (E.g. ActiveMQ), when you have many consumers you need to identify your "client-id" during the connection process, otherwise the server can misunderstand your connection and create new topics/queues:
<?php
$stomp = new Stomp($url, $user, $password, array('client-id'=> $clientId ));
?>