PHPackages                             geksor/yii2-centrifugal - 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. geksor/yii2-centrifugal

ActiveLibrary[Framework](/categories/framework)

geksor/yii2-centrifugal
=======================

Centrifugo component for Yii2 framework

03PHP

Since May 21Pushed 6y agoCompare

[ Source](https://github.com/geksor/yii2-centrifugo)[ Packagist](https://packagist.org/packages/geksor/yii2-centrifugal)[ RSS](/packages/geksor-yii2-centrifugal/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)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

```
> composer require geksor/yii2-centrifugal "dev-master"
```

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

```
"geksor/yii2-centrifugal": "dev-master"
```

Setup
-----

[](#setup)

Add into your config file as following

```
'components' => [
	...
	'centrifugo' => [
		'class'  => 'yii2\centrifugo\Client',
		'host'   => 'http://localhost:8000',
		'secret' => 'very-long-secret-key',
		'apiKey' => 'very-long-api-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

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 75% 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/41485873dee32a1e0307e4ea8b1a55777138b477095c0f36238a85fc47a69950?d=identicon)[geksor](/maintainers/geksor)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/geksor-yii2-centrifugal/health.svg)

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

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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