PHPackages                             kismia/centrifugo-bundle - 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. kismia/centrifugo-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

kismia/centrifugo-bundle
========================

A Centrifugo bundle for Symfony

1.0.2(6y ago)1122.4k1MITPHPPHP &gt;=7.0

Since Aug 14Pushed 6y ago2 watchersCompare

[ Source](https://github.com/kismia/centrifugo-bundle)[ Packagist](https://packagist.org/packages/kismia/centrifugo-bundle)[ Docs](https://github.com/kismia/centrifugo-bundle)[ RSS](/packages/kismia-centrifugo-bundle/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (5)Versions (2)Used By (0)

Centrifugo-bundle for Symfony
=============================

[](#centrifugo-bundle-for-symfony)

This is wrapper for [PHP client](https://github.com/oleh-ozimok/php-centrifugo) for [Centrifugo](https://github.com/centrifugal/centrifugo) real-time messaging server.

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

[](#installation)

Install the latest version with

```
composer require kismia/centrifugo-bundle
```

Register bundle in app\\AppKernel.php

```
    public function registerBundles()
    {
        $bundles = [
            .......
            new \Kismia\CentrifugoBundle\CentrifugoBundle()
        ];
    }
```

Configure centrifugo-bundle. In the config file add the following lines

```
centrifugo:
    apiendpoint: 'http//example.com/api/'
    secret: 'secret api key'
    transport:
        redis:
            host: 'localhost'
            shards: 6
            db: 2
            timeout: 0.3
            port: 6379
        http: []
```

Basic usage
-----------

[](#basic-usage)

```
