PHPackages                             barisbora/fanout - 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. barisbora/fanout

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

barisbora/fanout
================

A simple Laravel 5 fanout.io service provider

1.0.5(10y ago)662MITPHPPHP &gt;=5.4.0

Since Aug 17Pushed 10y ago2 watchersCompare

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

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

Laravel 5 Fanout.io Web Socket Service
======================================

[](#laravel-5-fanoutio-web-socket-service)

[![Latest Stable Version](https://camo.githubusercontent.com/cb92409c3154366fe7cfdabf3a35d3c6228d2dff7748cb0ba6f572ef87833ba2/68747470733a2f2f706f7365722e707567782e6f72672f6261726973626f72612f66616e6f75742f762f737461626c652e737667)](https://packagist.org/packages/barisbora/fanout) [![License](https://camo.githubusercontent.com/1b044267429938c18c66fb554f3c184ec7e5add2e6a66802ee1ae1e70c25a8ff/68747470733a2f2f706f7365722e707567782e6f72672f6261726973626f72612f66616e6f75742f6c6963656e73652e737667)](https://packagist.org/packages/barisbora/fanout)

A simple [Laravel 5](http://www.laravel.com/) service provider for [Fanout](http://www.fanout.io).

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

[](#installation)

The Laravel 5 Fanout Service Provider can be installed via [Composer](http://getcomposer.org) by requiring the `barisbora/fanout` package in your project's `composer.json`.

```
composer require barisbora/fanout

```

Configuration
-------------

[](#configuration)

To use the Fanout Service Provider, you must register the provider when bootstrapping your Laravel application.

Find the `providers` key in your `config/app.php` and register the Service Provider.

```
    'providers' => [
        // ...
        barisbora\Fanout\FanoutServiceProvider::class,
    ],
```

Find the `aliases` key in your `config/app.php` and register the Facade.

```
    'aliases' => [
        // ...
        'Fanout'    => barisbora\Fanout\Facades\FanoutFacade::class,
    ],
```

Usage
-----

[](#usage)

Run `php artisan vendor:publish` to publish the default config file, edit caching setting withing the resulting `config/fanout.php` file as desired.

### Example controller method, and it's related view:

[](#example-controller-method-and-its-related-view)

```
$fanout = Fanout::start();
$fanout->trigger( 'want-to-brodcast-channel-name', [
    'data1' => 'lorem ipsum dolor',
    // ...
] );
```

DONT FORGET change YOUR-REALM-ID and YOUR-CHANNEL

View:

```
@extends('layouts.default')

@section('content')

    Fanout.io Web Socket

@endsection

@section('footer')

        var client = new Faye.Client('http://YOUR-REALM-ID.fanoutcdn.com/bayeux');
        client.subscribe('/YOUR-CHANNEL', function (data) {
            console.log( data );
        });

@endsection
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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

Every ~0 days

Total

3

Last Release

3919d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b3067bea1fd5166abdf844b0db9ba458e13f896abcf11b7c81aa65dc596c91ec?d=identicon)[barisbora](/maintainers/barisbora)

---

Top Contributors

[![barisbora](https://avatars.githubusercontent.com/u/10472206?v=4)](https://github.com/barisbora "barisbora (11 commits)")

### Embed Badge

![Health badge](/badges/barisbora-fanout/health.svg)

```
[![Health](https://phpackages.com/badges/barisbora-fanout/health.svg)](https://phpackages.com/packages/barisbora-fanout)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M157](/packages/orchestra-canvas)[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M212](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)

PHPackages © 2026

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