PHPackages                             duxet/laravel-realtime - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. duxet/laravel-realtime

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

duxet/laravel-realtime
======================

Laravel realtime communication using pub/sub pattern

96094[1 issues](https://github.com/duxet/laravel-realtime/issues)PHP

Since Feb 27Pushed 11y ago4 watchersCompare

[ Source](https://github.com/duxet/laravel-realtime)[ Packagist](https://packagist.org/packages/duxet/laravel-realtime)[ RSS](/packages/duxet-laravel-realtime/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

laravel-realtime
================

[](#laravel-realtime)

[![Gitter chat](https://camo.githubusercontent.com/01300393499498909087140d454270061549b365e0a1abd2bc3e3a168981bd7f/68747470733a2f2f6261646765732e6769747465722e696d2f64757865742f6c61726176656c2d7265616c74696d652e706e67)](https://gitter.im/duxet/laravel-realtime)[![Build Status](https://camo.githubusercontent.com/8925d8da27f9398c71a4d55e405749ead057d7c147c4c7c502f085a9e10898d1/68747470733a2f2f7472617669732d63692e6f72672f64757865742f6c61726176656c2d7265616c74696d652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/duxet/laravel-realtime)[![Test Coverage](https://camo.githubusercontent.com/8dab0a51c83187ff0f215816542c7c76387ab549b66e7d89fee8738c187ac004/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f64757865742f6c61726176656c2d7265616c74696d652f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/duxet/laravel-realtime)[![Code Climate](https://camo.githubusercontent.com/0fbe3cd5a9bf860adcf242643c48416cfe6ca04da68673c273dac80ac49387ca/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f64757865742f6c61726176656c2d7265616c74696d652f6261646765732f6770612e737667)](https://codeclimate.com/github/duxet/laravel-realtime)[![Packagist](https://camo.githubusercontent.com/abf768e813a2024d2e0ac1d9f7a8acf37c82a616af659166f6a68c31257bcafb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64757865742f6c61726176656c2d7265616c74696d652e737667)](https://packagist.org/packages/duxet/laravel-realtime)

Laravel package for realtime communication using publish/subscribe pattern.

What is that?
=============

[](#what-is-that)

Ajax is not cool anymore. Now we have websockets, which gives us realtime communication with minimal delay. But how to use it with Laravel? This package gives answer to this question!

Supported services
==================

[](#supported-services)

- PubNub
- Pusher (only publish method)

How to use it?
==============

[](#how-to-use-it)

```
Realtime::publish('my_channel', 'Hello world!');
```

```
Realtime::subscribe('my_channel', function($message) {
  ...
);
```

Installation
============

[](#installation)

Require this package by using following command:

```
composer require duxet/laravel-realtime

```

After updating composer, add the ServiceProvider to the providers array in `config/app.php`

```
'duxet\Realtime\RealtimeServiceProvider',
```

And if you want, you can add alias to Facade in your 'config/app.php'

```
'Realtime' => 'duxet\Realtime\Facades\Realtime',
```

License
=======

[](#license)

Package is licensed under MIT License.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/942ef68ae7066a013c4876a6066635315c5cf91b2db8b7360d000fa63178dc87?d=identicon)[duxet](/maintainers/duxet)

---

Top Contributors

[![duxet](https://avatars.githubusercontent.com/u/821707?v=4)](https://github.com/duxet "duxet (27 commits)")

### Embed Badge

![Health badge](/badges/duxet-laravel-realtime/health.svg)

```
[![Health](https://phpackages.com/badges/duxet-laravel-realtime/health.svg)](https://phpackages.com/packages/duxet-laravel-realtime)
```

###  Alternatives

[trentrichardson/cakephp-shrink

Compiles, combines, and minifies javascript, coffee, less, scss, and css

1619.3k](/packages/trentrichardson-cakephp-shrink)

PHPackages © 2026

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