PHPackages                             beekirr/centrifugal-php-client - 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. beekirr/centrifugal-php-client

ActiveLibrary

beekirr/centrifugal-php-client
==============================

Php library to communicate with Centrifugo/Centrifuge)

1.0.4(10y ago)05MITPHPPHP &gt;=5.3.0

Since Jun 15Pushed 7y ago1 watchersCompare

[ Source](https://github.com/beekirr/centrifugal-php-client)[ Packagist](https://packagist.org/packages/beekirr/centrifugal-php-client)[ Docs](https://github.com/centrifugal/phpcent)[ RSS](/packages/beekirr-centrifugal-php-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (5)Used By (0)

centrifuge-php
==============

[](#centrifuge-php)

[![Build Status](https://camo.githubusercontent.com/89283e06b837123185818cdfef87d18fad3ef8722e4d91988c8680e66ceb669a/68747470733a2f2f7472617669732d63692e6f72672f6265656b6972722f63656e747269667567652d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/beekirr/centrifuge-php)

Php library to communicate with Centrifugo HTTP API.

Library is published on the Composer:

```
{
    "require": {
        "sl4mmer/phpcent":"dev-master",
    }
}
```

Full [Centrifugo documentation](https://fzambia.gitbooks.io/centrifugal/content/)

Basic Usage:

```

        $client = new \phpcent\Client("http://localhost:8000");
        $client->setSecret("secret key from Centrifugo");
        $client->publish("main_feed", ["message" => "Hello Everybody"]);
        $history = $client->history("main_feed");

```

You can use `phpcent` to create frontend token:

```
	$token = $client->setSecret($pSecret)->generateClientToken($user, $timestamp);
```

Or to create private channel sign:

```
	$sign = $client->setSecret($pSecret)->generateClientToken($client, $channel);
```

Since 1.0.3 phpcent has broadcast implementation.

```
$client->broadcast(['example:entities', 'example:moar'], ['user_id' => 2321321, 'state' => '1']);
```

### SSL

[](#ssl)

In case if your Centrifugo server has invalid SSL certificate, you can use:

```
\phpcent\Transport::setSafety(\phpcent\Transport::UNSAFE);
```

Since 1.0.5 you can use self signed certificate in safe manner:

```
$client = new \phpcent\Client("https://localhost:8000");
$client->setSecret("secret key from Centrifugo");
$transport = new \phpcent\Transport();
$transport->setCert("/path/to/certificate.pem");
$client->setTransport($transport);
```

*Note:* Certificate must match with host name in `Client` address (`localhost` in example above).

Alternative clients
===================

[](#alternative-clients)

- [php-centrifugo](https://github.com/oleh-ozimok/php-centrifugo) - allows to work with Redis Engine API queue.
- [php\_cent](https://github.com/skoniks/php_cent) by [skoniks](https://github.com/skoniks)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 65.2% 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 ~86 days

Total

4

Last Release

3722d ago

Major Versions

0.6.1 → 1.0.32016-02-28

### Community

Maintainers

![](https://www.gravatar.com/avatar/8bfa04267ac43685b2f1d37cc0eff03fc3fa21aff40bba753dbec90f1116df88?d=identicon)[beekirr](/maintainers/beekirr)

---

Top Contributors

[![sl4mmer](https://avatars.githubusercontent.com/u/1143307?v=4)](https://github.com/sl4mmer "sl4mmer (30 commits)")[![FZambia](https://avatars.githubusercontent.com/u/1196565?v=4)](https://github.com/FZambia "FZambia (9 commits)")[![beekirr](https://avatars.githubusercontent.com/u/10225274?v=4)](https://github.com/beekirr "beekirr (3 commits)")[![Vovan-VE](https://avatars.githubusercontent.com/u/1166581?v=4)](https://github.com/Vovan-VE "Vovan-VE (2 commits)")[![aleksraiden](https://avatars.githubusercontent.com/u/65920?v=4)](https://github.com/aleksraiden "aleksraiden (1 commits)")[![yagobski](https://avatars.githubusercontent.com/u/220980?v=4)](https://github.com/yagobski "yagobski (1 commits)")

---

Tags

centrifugo

### Embed Badge

![Health badge](/badges/beekirr-centrifugal-php-client/health.svg)

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

###  Alternatives

[centrifugal/phpcent

PHP library to communicate with Centrifugo HTTP API

1822.3M4](/packages/centrifugal-phpcent)[sl4mmer/phpcent

PHP library to communicate with Centrifugo HTTP API

182293.0k1](/packages/sl4mmer-phpcent)[fresh/centrifugo-bundle

Provides communication with web-socket server Centrifugo in Symfony applications.

83375.3k](/packages/fresh-centrifugo-bundle)[denis660/laravel-centrifugo

Centrifugo broadcaster for laravel

113164.7k](/packages/denis660-laravel-centrifugo)[opekunov/laravel-centrifugo-broadcaster

Centrifugo broadcaster for Laravel 8.75-11.x and Centrifugo &gt;= 5.0

49461.3k](/packages/opekunov-laravel-centrifugo-broadcaster)[oleh-ozimok/php-centrifugo

PHP client for Centrifugo real-time messaging server

39511.1k1](/packages/oleh-ozimok-php-centrifugo)

PHPackages © 2026

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