Skip to content
This repository has been archived by the owner on May 13, 2019. It is now read-only.

chuhlomin/stomp-php

 
 

Repository files navigation

Stomp PHP

This project is a PHP Stomp Client that besides it implements the Stomp protocol fully, adds some ActiveMQ specific features that could make your messaging from PHP easier.

Build Status

Version choice

This fork is not compatible to the original stomp from https://github.com/dejanb/stomp-php. The last compatible version is 2.2.2. The last php-5.3 compatible version is 3.0.0.

Installing

The source is PSR-0 compliant. So just download the source and add the Namespace "Stomp" 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

    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/stomp-php/stomp-php"
        }
    ],
    "require": {
        "stomp-php/stomp-php": "3.0.0"
    }

to your project composer.json.

Documentation

See our wiki.

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] (http://activemq.apache.org/stomp.html).

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

Step by Step: Certificate based Authentication

https://github.com/rethab/php-stomp-cert-example

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

Licence

Apache License Version 2.0

Packages

No packages published

Languages

  • PHP 98.8%
  • Shell 1.2%