PHPackages                             firemidge/stomp-client-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Queues &amp; Workers](/categories/queues)
4. /
5. firemidge/stomp-client-php

ActiveLibrary[Queues &amp; Workers](/categories/queues)

firemidge/stomp-client-php
==========================

STOMP support for PHP. This is a forked project, to add support for PHP 8.1 onwards, and to drop older PHP versions, in order to have full type-hinting and return types.

v6.0(3y ago)08Apache-2.0PHPPHP ^8.1

Since Mar 15Pushed 1y agoCompare

[ Source](https://github.com/FireMidge/stomp-client-php)[ Packagist](https://packagist.org/packages/firemidge/stomp-client-php)[ Docs](http://github.com/firemidge/stomp-php)[ GitHub Sponsors](https://github.com/jmglsn)[ GitHub Sponsors](https://github.com/staabm)[ RSS](/packages/firemidge-stomp-client-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (42)Used By (0)

Stomp PHP
=========

[](#stomp-php)

[![Build Status](https://camo.githubusercontent.com/f03a495f4999f8464ed52c039054832cf461a6dc49ef48dde2fbba19827df61f/68747470733a2f2f7472617669732d63692e6f72672f73746f6d702d7068702f73746f6d702d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/stomp-php/stomp-php)

This project is a PHP [Stomp](http://stomp.github.com) Client that besides it implements the Stomp protocol fully, brings some ActiveMQ and Apollo specific utils that could make your messaging from PHP easier.

Credits
-------

[](#credits)

This library was initially developed by [Dejan Bosanac](https://github.com/dejanb). We would like to thank you for your work and we're happy to continue it.

Version choice
--------------

[](#version-choice)

- For new projects you should use version `4.*` which requires `php-5.6`. Support for `php-5.6` ends with version `5.*`.
- For projects running older php versions you can use version `4.2.*` for `php-5.5` and `3.*` for `php-5.3`, please consider to update php.
- For running projects with `fusesource/stomp-php@2.x` clients you can use version `2.2.2`.
- All version newer that `2.x` won't be compatible with `fusesource/stomp-php`. (.)

Installing
----------

[](#installing)

```
composer require stomp-php/stomp-php
```

Examples
--------

[](#examples)

You find different usage tutorials in our example project .

### Connection Probing

[](#connection-probing)

It's hard to find out if a socket connection is still working or not, Stomp allows us to use heartbeats to test if client and server are ready to serve messages.

You should use `\Stomp\Network\Observer\ServerAliveObserver` or `\Stomp\Network\Observer\HeartbeatEmitter` to receive or send heartbeats. Doing so will ensure that your client will detect a broken connection in time. Please have a look at  for some example code with additonal comments.

Replace fusesource/stomp-php
----------------------------

[](#replace-fusesourcestomp-php)

If you used `fusesource/stomp-php` before, you can use our `2.x` versions.

```
    "require": {
        "stomp-php/stomp-php": "2.*"
    }
```

Contributing
------------

[](#contributing)

We code in `PSR2`, please use our predefined `pre_commit.sh` hook.

Tests
-----

[](#tests)

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

```
$ php composer.phar install

```

The functional testsuite is divided into three broker versions. Currently it's running on `ActiveMq` (Port 61010), `Apollo` (61020), `RabbitMq` (61030), `Artemis` (61040). Apollo should be configured to use admin:password and RabbitMq to guest:guest. While ActiveMq must be configured to use no login at all.

You can setup all brokers by running `travisci/bin/start.sh`. Stop them by `travisci/bin/stop.sh`. (Docker is required.)

If you only like to run the functional generic tests, ensure Apollo is configured. A basic setup can be achieved by running `./travisci/bin/apollo-mq.sh 1.7.1`. (If you want to create a local running broker, you find the config / setup at `travisci/docker/apollo-mq/`)

Licence
-------

[](#licence)

[Apache License Version 2.0](http://www.apache.org/licenses/LICENSE-2.0)

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity84

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~106 days

Recently: every ~340 days

Total

39

Last Release

1127d ago

Major Versions

2.2.3 → 4.0.12016-02-07

3.0.6 → 4.1.02016-05-31

3.0.7 → 4.3.12017-11-15

4.6.1 → 5.0.02021-02-02

5.0.0 → v6.02023-04-16

PHP version history (5 changes)2.0.0PHP &gt;=5.3.0

4.0.0PHP &gt;=5.5.0

4.3.0PHP ^5.6 || ^7.0

5.0.0PHP ^7.3|^8.0

v6.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/7621d18f972f83906945d947061a471e97a5065c2e6b9b5acd2d8091c36b7267?d=identicon)[FireMidge](/maintainers/FireMidge)

---

Top Contributors

[![jmglsn](https://avatars.githubusercontent.com/u/1116755?v=4)](https://github.com/jmglsn "jmglsn (155 commits)")[![andrewmy](https://avatars.githubusercontent.com/u/715595?v=4)](https://github.com/andrewmy "andrewmy (38 commits)")[![staabm](https://avatars.githubusercontent.com/u/120441?v=4)](https://github.com/staabm "staabm (34 commits)")[![igorw](https://avatars.githubusercontent.com/u/88061?v=4)](https://github.com/igorw "igorw (15 commits)")[![localheinz](https://avatars.githubusercontent.com/u/605483?v=4)](https://github.com/localheinz "localheinz (14 commits)")[![MPParsley](https://avatars.githubusercontent.com/u/1823998?v=4)](https://github.com/MPParsley "MPParsley (11 commits)")[![monofone](https://avatars.githubusercontent.com/u/373163?v=4)](https://github.com/monofone "monofone (11 commits)")[![chuhlomin](https://avatars.githubusercontent.com/u/3620471?v=4)](https://github.com/chuhlomin "chuhlomin (9 commits)")[![FireMidge](https://avatars.githubusercontent.com/u/4896496?v=4)](https://github.com/FireMidge "FireMidge (4 commits)")[![dejanb](https://avatars.githubusercontent.com/u/141611?v=4)](https://github.com/dejanb "dejanb (4 commits)")[![beatchristen](https://avatars.githubusercontent.com/u/1488849?v=4)](https://github.com/beatchristen "beatchristen (3 commits)")[![rutkai](https://avatars.githubusercontent.com/u/1587720?v=4)](https://github.com/rutkai "rutkai (2 commits)")[![andrewbelcher](https://avatars.githubusercontent.com/u/7072329?v=4)](https://github.com/andrewbelcher "andrewbelcher (2 commits)")[![ganeko](https://avatars.githubusercontent.com/u/2972953?v=4)](https://github.com/ganeko "ganeko (2 commits)")[![withoutlogin](https://avatars.githubusercontent.com/u/9104441?v=4)](https://github.com/withoutlogin "withoutlogin (1 commits)")[![byteshinobi](https://avatars.githubusercontent.com/u/884428?v=4)](https://github.com/byteshinobi "byteshinobi (1 commits)")[![campru](https://avatars.githubusercontent.com/u/4568007?v=4)](https://github.com/campru "campru (1 commits)")[![edefimov](https://avatars.githubusercontent.com/u/12027442?v=4)](https://github.com/edefimov "edefimov (1 commits)")[![llimos](https://avatars.githubusercontent.com/u/5158621?v=4)](https://github.com/llimos "llimos (1 commits)")[![mlamm](https://avatars.githubusercontent.com/u/3897802?v=4)](https://github.com/mlamm "mlamm (1 commits)")

---

Tags

rabbitmqmessagingjmsstompactiveMQapollomq

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/firemidge-stomp-client-php/health.svg)

```
[![Health](https://phpackages.com/badges/firemidge-stomp-client-php/health.svg)](https://phpackages.com/packages/firemidge-stomp-client-php)
```

###  Alternatives

[stomp-php/stomp-php

stomp support for PHP

1285.6M26](/packages/stomp-php-stomp-php)[queue-interop/queue-interop

Promoting the interoperability of MQs objects. Based on Java JMS

48030.5M87](/packages/queue-interop-queue-interop)[bunny/bunny

Performant pure-PHP AMQP (RabbitMQ) non-blocking ReactPHP library

7426.5M37](/packages/bunny-bunny)[enqueue/enqueue-bundle

Message Queue Bundle

27615.6M38](/packages/enqueue-enqueue-bundle)[enqueue/enqueue

Message Queue Library

19820.0M56](/packages/enqueue-enqueue)[nuwber/rabbitevents

The Nuwber RabbitEvents package

120515.8k3](/packages/nuwber-rabbitevents)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
