PHPackages                             p-sam/real-time-bundle - 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. p-sam/real-time-bundle

AbandonedArchivedSymfony-bundle[Queues &amp; Workers](/categories/queues)

p-sam/real-time-bundle
======================

Real-time events from server to browsers and mobile devices

1.3.0(6y ago)310.3k—0%2MITPHPPHP ^7.2

Since Aug 4Pushed 6y ago2 watchersCompare

[ Source](https://github.com/p-sam/real-time-bundle)[ Packagist](https://packagist.org/packages/p-sam/real-time-bundle)[ RSS](/packages/p-sam-real-time-bundle/feed)WikiDiscussions develop Synced 2mo ago

READMEChangelog (10)Dependencies (7)Versions (12)Used By (0)

p-sam/real-time-bundle
======================

[](#p-samreal-time-bundle)

[![license-badge](https://camo.githubusercontent.com/1a3fe426e87adb0e089d46eb6247dca0f5041756f46cc51f858bd3b9e6b02c2a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f73706572726963686f6e2f7265616c2d74696d652d62756e646c652e7376673f7374796c653d666c61742d737175617265)](LICENSE) [![release-version-badge](https://camo.githubusercontent.com/a90cf26b7b023901c4700ac03e73ff5c15a6fac7551ec78982f3f6adc0d012aa/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73706572726963686f6e2f7265616c2d74696d652d62756e646c652e7376673f7374796c653d666c61742d737175617265266c6162656c3d72656c65617365)](https://packagist.org/packages/sperrichon/real-time-bundle) [![php-version-badge](https://camo.githubusercontent.com/7ffdfa0bdc4071505dce41279aa3d06dce97e712dbd52aed6e50ec30f78b0ad9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f73706572726963686f6e2f7265616c2d74696d652d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/7ffdfa0bdc4071505dce41279aa3d06dce97e712dbd52aed6e50ec30f78b0ad9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f73706572726963686f6e2f7265616c2d74696d652d62756e646c652e7376673f7374796c653d666c61742d737175617265)

Real-time events from server to browsers and mobile devices via "channels"

*Please note that this bundle makes uses of [ably.io](https://www.ably.io/) and [Redis](https://redis.io/) via [Predis](https://github.com/nrk/predis).*

Installation
------------

[](#installation)

Install with composer:

```
$ composer require p-sam/real-time-bundle

```

Then register the bundle in the `AppKernel.php` file:

```
public function registerBundles()
{
    $bundles = array(
        // ...
        new SP\RealTimeBundle\SPRealTimeBundle(),
        // ...
    );

    return $bundles;
}
```

Then add the following to your `routing.yml`:

```
sp_realtime:
    resource: "@SPRealTimeBundle/Controller/"
    type: annotation
```

**Note**: Registering the bundle and the routes are done automatically if you're using Symfony Flex

Configuration
-------------

[](#configuration)

Configure the `predis` client and `ably` key in your `config.yml`:

```
sp_realtime:
    ably:
        api_key: '- ably key here -'
        ttl: 3600 # in seconds
    redis:
        key_prefix: 'app:'
    presence_check: true
```

Usage
-----

[](#usage)

### From PHP

[](#from-php)

Services are provided from the bundle:

- `sp_real_time.sender`: Allows sending of messages to channels
- `sp_real_time.presence`: Allow subscribing by providing tokens, and checking for presence in channels

The following events are dispatched:

- `sp_real_time.event.subscribe`: A `SubscribeEvent` is emitted when a token is generated for a channel
- `sp_real_time.event.message`: A `MessageEvent` is emitted when a message is sent upstream to ably.io

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 75.7% of commits — single point of failure

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 ~66 days

Recently: every ~93 days

Total

10

Last Release

2245d ago

Major Versions

0.4.1 → 1.0.02018-09-07

PHP version history (2 changes)0.4.1PHP &gt;= 7.1

1.3.0PHP ^7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/a88e68f5d890eb679cc6d569bf5d9bd02e79f909582dcda7809374f2dd3d43dd?d=identicon)[p-sam](/maintainers/p-sam)

---

Top Contributors

[![p-sam](https://avatars.githubusercontent.com/u/17620180?v=4)](https://github.com/p-sam "p-sam (28 commits)")[![DamienHarper](https://avatars.githubusercontent.com/u/2448660?v=4)](https://github.com/DamienHarper "DamienHarper (5 commits)")[![maxhelias](https://avatars.githubusercontent.com/u/12966574?v=4)](https://github.com/maxhelias "maxhelias (4 commits)")

---

Tags

messagebundletimerealtimeablyrealpresence

### Embed Badge

![Health badge](/badges/p-sam-real-time-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/p-sam-real-time-bundle/health.svg)](https://phpackages.com/packages/p-sam-real-time-bundle)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[php-amqplib/rabbitmq-bundle

Integrates php-amqplib with Symfony &amp; RabbitMq. Formerly emag-tech-labs/rabbitmq-bundle, oldsound/rabbitmq-bundle.

1.3k20.1M65](/packages/php-amqplib-rabbitmq-bundle)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[nahid/talk

Talk is a Laravel based realtime messaging, chatting and conversation system. It helps to develop users messaging, chatting and conversations in easy way.

1.6k58.1k4](/packages/nahid-talk)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[webfactory/icu-translation-bundle

Enables ICU message formatting for translations in Symfony applications.

2761.8k](/packages/webfactory-icu-translation-bundle)

PHPackages © 2026

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