Installing

The source is PSR-0 compliant. So just donwload the source and add the Namespace
"FuseSource" to your autoloader configuration with the path pointing to
src/.

As an alternate you have the possibility to make use of composer to manage your
project dependencies.

Just add

"require": {
"fusesource/stomp-php" : "2.0.*"
}

to your project composer.json.

Running Examples

Examples are located in src/examples folder. Before running them, be sure
you have installed this library properly and you have started ActiveMQ broker
(recommended version 5.5.0 or above) with Stomp connector enabled.

You can start by running

cd examples
php first.php

Also, be sure to check comments in the particular examples for some special
configuration steps (if needed).