Skip to content
This repository
branch: master
1 comment

Merge pull request #22 from boonedox/master

bug fix for Stomp::readFrame, was occasionally reading more than one Frame, this merge prevents this as it only reads up to \n and checks for end of frame before anything of the next frame is read
latest commit 4ac51c0abe
Sören Rohweder monofone authored February 23, 2013
Octocat-spinner-32 examples Remove examples/loader and replace it with composer autoloader August 23, 2012
Octocat-spinner-32 src use fgets instead of fread in Stomp::readFrame() February 20, 2013
Octocat-spinner-32 tests Merge branch 'unittest-16' of https://github.com/mmz-srf/stomp-php in… November 24, 2012
Octocat-spinner-32 travisci [TASK] added travs configuration November 24, 2012
Octocat-spinner-32 .gitignore Adjust gitignore to exclude vendor August 23, 2012
Octocat-spinner-32 .travis.yml [TASK] added travs configuration November 24, 2012
Octocat-spinner-32 README.md
Octocat-spinner-32 build.xml moving php stomp client to github August 04, 2011
Octocat-spinner-32 composer.json Remove trailing URL slash in composer.json August 23, 2012
Octocat-spinner-32 phpunit.xml Merge branch 'unittest-16' of https://github.com/mmz-srf/stomp-php in… November 24, 2012
README.md

A simple PHP Stomp Client

Version choice

There are 2 Versions of stomp-php. 1.x is compatible with PHP <= PHP-5.2 as it does not use PHP-5.3 specific features.

The master branch uses features such as namespaces and newer constants and will become the 2.x release in the near future.

For versioning semantic versioning is used.

The different Versions can be found at the tags section.

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).

Documentation

Tests

The tests at the moment need a running instance of activeMQ listening on the default STOMP Port 61613.

To run the tests you first need to fetch the dependencies for the test suite via composer:

$ php composer.phar install
Something went wrong with that request. Please try again.