PHPackages                             smart-crowd/centrifuge-broadcaster - 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. smart-crowd/centrifuge-broadcaster

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

smart-crowd/centrifuge-broadcaster
==================================

Centrifuge and centrifugo broadcaster for laravel 5.1

v1.0(10y ago)75663MITPHP

Since Aug 13Pushed 10y ago3 watchersCompare

[ Source](https://github.com/SmartCrowd/centrifuge-broadcaster)[ Packagist](https://packagist.org/packages/smart-crowd/centrifuge-broadcaster)[ RSS](/packages/smart-crowd-centrifuge-broadcaster/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (7)Versions (7)Used By (0)

centrifuge-broadcaster
======================

[](#centrifuge-broadcaster)

Centrifuge and centrifugo broadcaster for laravel 5.1

Centrifuge is not supported at this time because changes made during the [upgrade Centrifugo to 1.0](https://github.com/centrifugal/centrifugo/releases/tag/v1.0.0) broken backward compatibility.

If you can not go to Centrifugo, use the package version [0.3.1](https://github.com/SmartCrowd/centrifuge-broadcaster/tree/V0.3.1)

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

[](#installation)

1. `composer require smart-crowd/centrifuge-broadcaster`
2. In `config/broadcasting`:

```
    'default' => 'centrifuge',
    'connections' => [
        ...
        'centrifuge' => [
            'driver'          => 'centrifuge',
            'transport'       => 'http', // or redis
            'redisConnection' => 'default', // for redis transport only
            'baseUrl'         => 'http://myapp.exapmle:8000',
            'secret'          => 'f27d79a1-821f-4e3f-47b2-7cb308768c77',
            'topLevelFields'  => [
                /**
                 * to implement
                 * http://fzambia.gitbooks.io/centrifugal/content/mixed/exclude_sender.html
                 * you should pass in payload `centClientId` field
                 */
                'centClientId' => 'client',
            ],
        ]
    ]
```

3. Add provider and alias in `config/app.php`

```
    'providers' => [
        ...
        SmartCrowd\Centrifuge\CentrifugeServiceProvider::class
    ],

    'aliases' => [
        ...
        'Centrifuge' => SmartCrowd\Centrifuge\CentrifugeFacade::class
    ]
```

Server configuration
--------------------

[](#server-configuration)

Send messages to centrifugo
---------------------------

[](#send-messages-to-centrifugo)

You should just fire broadcastable event. See . Don't forget, that events are broadcasted into queued jobs, so configure your queues.

Connect from client
-------------------

[](#connect-from-client)

Use oficial centrifuge client library . In your view:

```

    var centrifuge = new Centrifuge({!! json_encode(Centrifuge::getConnection($isSockJS = true)) !!});

    centrifuge.connect();

    centrifuge.on('connect', function() {
        var subscription = centrifuge.subscribe('test-channel', function(message) {
            console.log(message);
        });
    });

```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity67

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~19 days

Total

5

Last Release

3852d ago

Major Versions

V0.3.1 → v1.02015-10-31

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2529340?v=4)[Paul Klementyev](/maintainers/klermonte)[@klermonte](https://github.com/klermonte)

---

Top Contributors

[![klermonte](https://avatars.githubusercontent.com/u/2529340?v=4)](https://github.com/klermonte "klermonte (25 commits)")

---

Tags

laravelcentrifugobroadcastercentrifuge

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/smart-crowd-centrifuge-broadcaster/health.svg)

```
[![Health](https://phpackages.com/badges/smart-crowd-centrifuge-broadcaster/health.svg)](https://phpackages.com/packages/smart-crowd-centrifuge-broadcaster)
```

###  Alternatives

[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

22.8k69.3k](/packages/grumpydictator-firefly-iii)[laracomponents/centrifuge-broadcaster

Centrifuge broadcaster for laravel &gt;= 5.3

227.5k](/packages/laracomponents-centrifuge-broadcaster)[mvanduijker/laravel-mercure-broadcaster

Mercure broadcaster

16866.5k](/packages/mvanduijker-laravel-mercure-broadcaster)[alex-hnydiuk/laracent

Centrifugo broadcaster for laravel &gt;= 5.7 and Centrifugo &gt;= 2.1.0

134.0k](/packages/alex-hnydiuk-laracent)[ashallendesign/laravel-executor

Configurable code that can be ran when installing or updating your web app.

2573.0k](/packages/ashallendesign-laravel-executor)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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