PHPackages                             marcosraudkett/centrifuge-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. marcosraudkett/centrifuge-php

ActiveLibrary

marcosraudkett/centrifuge-php
=============================

centrifuge-php

1.0.0(1y ago)02[1 PRs](https://github.com/marcosraudkett/centrifuge-php/pulls)MITPHPPHP ^8.1CI passing

Since Jun 6Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/marcosraudkett/centrifuge-php)[ Packagist](https://packagist.org/packages/marcosraudkett/centrifuge-php)[ Docs](https://github.com/marcosraudkett/centrifuge-php)[ RSS](/packages/marcosraudkett-centrifuge-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (10)Versions (3)Used By (0)

Unofficial PHP SDK for the Centrifugo server API.
=================================================

[](#unofficial-php-sdk-for-the-centrifugo-server-api)

This is an unofficial Centrifugo PHP **server** SDK. More information on the [official documentation page](https://centrifugal.dev/docs/server/server_api#http-api).

Requirements
------------

[](#requirements)

- PHP 8.1+

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

[](#installation)

```
composer require marcosraudkett/centrifuge-php

```

Usage
-----

[](#usage)

### Publish

[](#publish)

Example on how to publish data to a channel:

```
use Mvrc\CentrifugePhp\CentrifugeConnector;
use Mvrc\CentrifugePhp\Requests\PublishRequest;

$connector = new CentrifugeConnector;
$request = new PublishRequest(
    channel: "private-test",
    data: [
        "test" => true
    ]
);

$response = $connector->send($request);

print_r($response->json());
print_r($response->status());
```

Available requests
------------------

[](#available-requests)

RequestDescriptionBatchRequestBatch allows sending many commands in one request.BroadcastRequestbroadcast is similar to publish but allows to efficiently send the same data into many channels.ChannelsRequestchannels return active channels (with one or more active subscribers in it).DisconnectRequestdisconnect allows disconnecting a user by ID.HistoryRemoveRequesthistory\_remove allows removing publications in channel history.HistoryRequesthistory allows getting channel history information (list of last messages published into the channel).InfoRequestinfo method allows getting information about running Centrifugo nodes.PresenceRequestpresence allows getting channel online presence information (all clients currently subscribed on this channel).PresenceStatsRequestpresence\_stats allows getting short channel presence information - number of clients and number of unique users (based on user ID).PublishRequestPublish method allows publishing data into a channel (we call this message publication in Centrifugo). Most probably this is a command you'll use most of the time.RefreshRequestrefresh allows refreshing user connection (mostly useful when unidirectional transports are used).SubscribeRequestsubscribe allows subscribing active user's sessions to a channel. Note, it's mostly for dynamic server-side subscriptions.UnsubscribeRequestunsubscribe allows unsubscribing user from a channel.Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

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

[](#contributing)

Feel free to open a pull request or report an issue.

Credits
-------

[](#credits)

- [Marcos Raudkett](https://github.com/marcosraudkett)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance58

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

704d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4728b3460b234ea41a33eaa9d849af76f8dd0348228441208dba89527d2c63df?d=identicon)[marcosraudkett](/maintainers/marcosraudkett)

---

Top Contributors

[![elythi0n](https://avatars.githubusercontent.com/u/23305471?v=4)](https://github.com/elythi0n "elythi0n (7 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (4 commits)")

---

Tags

laravelcentrifuge-phpMvrc

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/marcosraudkett-centrifuge-php/health.svg)

```
[![Health](https://phpackages.com/badges/marcosraudkett-centrifuge-php/health.svg)](https://phpackages.com/packages/marcosraudkett-centrifuge-php)
```

###  Alternatives

[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[codebar-ag/laravel-docuware

DocuWare integration with Laravel

1221.1k](/packages/codebar-ag-laravel-docuware)[codebar-ag/laravel-zammad

Zammad integration with Laravel

106.1k](/packages/codebar-ag-laravel-zammad)

PHPackages © 2026

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