centraldesktop / stomp
A Stomp 1.2 capable client
Installs: 72 012
Dependents: 3
Suggesters: 0
Security: 0
Stars: 5
Watchers: 13
Forks: 8
Open Issues: 1
Requires
- php: >=5.4.0
- ext-mbstring: *
- ext-xmlreader: *
- psr/log: ~1.0
Requires (Dev)
- pdepend/pdepend: 1.1.*
- phpmd/phpmd: 1.5.*
- phpunit/phpunit: >=4.2.0
- squizlabs/php_codesniffer: 1.4.*
This package is not auto-updated.
Last update: 2024-11-09 13:51:07 UTC
README
Includes partial 1.2 support (including NACK), circular buffers, XML maps (in addition to JSON) and a whole host of fixes and improvements to the fusesource.org code base from which we worked some years ago.
License: Apache
To run unit tests:
composer install (or composer update)
vendor/bin/phpunit
Fork of: http://stomp.fusesource.org
Usage
use CentralDesktop\Stomp\Connection; $factory = new \CentralDesktop\Stomp\ConnectionFactory\Failover(['host1:61612','host2:61612']), true); $con = new Connection($factory); // connect with some bad credentials and stomp protocol 1.2 (default 1.0 currently) $con->connect('username','password',1.2); // send a message to the "test" queue with body of payload // and with the message attribute persistent:true $con->send("test", "payload", array("persistent" => 'true'));