PHPackages                             betsuno/yii2-centrifugo - 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. [Framework](/categories/framework)
4. /
5. betsuno/yii2-centrifugo

ActiveLibrary[Framework](/categories/framework)

betsuno/yii2-centrifugo
=======================

Centrifugo component for Yii2 framework

0.1(9y ago)86.7k↓100%3MITPHP

Since Feb 16Pushed 9y ago1 watchersCompare

[ Source](https://github.com/BetsuNo/yii2-centrifugo)[ Packagist](https://packagist.org/packages/betsuno/yii2-centrifugo)[ RSS](/packages/betsuno-yii2-centrifugo/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Yii2 Centrifugo Component
=========================

[](#yii2-centrifugo-component)

There is a wrapper for [Centrifugo](https://github.com/centrifugal/centrifugo) client based on [PHPCent](https://github.com/centrifugal/phpcent)

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

[](#installation)

Run command in shell

```
> php composer.phar require "betsuno/yii2-centrifugo"
```

or add this line in to the `require` section of the `composer.json` file in your project

```
"betsuno/yii2-centrifugo": "*"
```

Setup
-----

[](#setup)

Add into your config file as following

```
'components' => [
	...
	'centrifugo' => [
		'class'  => 'yii2\centrifugo\Client',
		'host'   => 'http://localhost:8000',
		'secret' => 'very-long-secret-key',
		// also you can specify your own transport class as below
		'transport' => [
			'class' => 'your\transport\ClassName',
			...
		]
	],
	...
]
```

Usage
-----

[](#usage)

```
Yii::$app->centrifugo->publish('test', ['message' => 'hello world']);
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3372d ago

### Community

Maintainers

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

---

Top Contributors

[![BetsuNo](https://avatars.githubusercontent.com/u/12868790?v=4)](https://github.com/BetsuNo "BetsuNo (5 commits)")

### Embed Badge

![Health badge](/badges/betsuno-yii2-centrifugo/health.svg)

```
[![Health](https://phpackages.com/badges/betsuno-yii2-centrifugo/health.svg)](https://phpackages.com/packages/betsuno-yii2-centrifugo)
```

###  Alternatives

[skeeks/cms

SkeekS CMS — control panel and tools based on php framework Yii2

13825.6k47](/packages/skeeks-cms)

PHPackages © 2026

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