PHPackages                             ricardofontanelli/laravel-fanout-provider - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. ricardofontanelli/laravel-fanout-provider

ActiveLibrary[HTTP &amp; Networking](/categories/http)

ricardofontanelli/laravel-fanout-provider
=========================================

A simple and lightweight Laravel 4.2 and Laravel 5.\* wrapper to interact with Fanout Service (fanout.io). Fanout is a SAAS that makes easy to build apps and APIs with realtime updates.

1.0(9y ago)224BSD StylePHPPHP &gt;=5.3.0

Since Feb 16Pushed 8y agoCompare

[ Source](https://github.com/ricardofontanelli/laravel-fanout-provider)[ Packagist](https://packagist.org/packages/ricardofontanelli/laravel-fanout-provider)[ Docs](https://github.com/ricardofontanelli/laravel-fanout-provider)[ RSS](/packages/ricardofontanelli-laravel-fanout-provider/feed)WikiDiscussions master Synced 5d ago

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

Laravel Fanout
==============

[](#laravel-fanout)

A simple and lightweight Laravel 4.2 and Laravel 5.\* wrapper to interact with Fanout Service (fanout.io). Fanout is a SAAS that makes easy to build apps and APIs with realtime updates.

Get Started:
------------

[](#get-started)

- First of all, you should create an account on Fanout website (fanout.io)\[\] to obtain the service credentials (Realm ID and Realm Key);
- Install the lib via composer;
- Update the config file and be happy!

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

[](#installation)

The Laravel Fanout Service Provider can be installed via ...

```
composer require ricardofontanelli/laravel-fanout-provider:1.0
```

or [Composer](http://getcomposer.org) by requiring the `ricardofontanelli/laravel-fanout-provider` package in your project's `composer.json`

```
{
    "require": {
        "ricardofontanelli/laravel-fanout-provider": "1.0"
    }
}
```

Then run a composer update

```
php composer update
```

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

In Laravel find the `providers` key in your `config/app.php` and register the Laravel Fanout Service Provider.

```
    // Laravel 4
    'providers' => array(
        // ...
        'RicardoFontanelli\LaravelFanout\FanoutServiceProvider',
    )

    // Laravel 5.*
    'providers' => [
        // ...
        RicardoFontanelli\LaravelFanout\FanoutServiceProvider::class,
    ]
```

Find the `aliases` key in your `config/app.php` and add the Laravel Fanout facade alias.

```
    // Laravel 4.*
    'aliases' => array(
        // ...
        'Fanout' => 'RicardoFontanelli\LaravelFanout\FanoutFacade',
    )

    // Laravel 5.*
    'aliases' => [
        // ...
        'Fanout' => RicardoFontanelli\LaravelFanout\FanoutFacade::class,
    ]
```

Publishing the package
----------------------

[](#publishing-the-package)

Now, you should publish the package to generate the config file, after that, edit the config file with your Fanout credentials.

### Laravel 4.2

[](#laravel-42)

The config file will be generate here: `app/config/packages/ricardofontanelli/laravel-fanout-provider/config.php`

```
php artisan config:publish ricardofontanelli/laravel-fanout-provider
```

### Laravel 5.\*

[](#laravel-5)

The config file will be generate here: `app/config/fanout.php`

```
php artisan vendor:publish --provider="RicardoFontanelli\LaravelFanout\FanoutServiceProvider"
```

### Send a notification:

[](#send-a-notification)

You have two options to test the front-end, the first is using the fanout Push Test Page, on Control Panel click the button "Push Test Page, on terminal open `php artisan tinker ` and run:

```
// Send a notification
Fanout::publish('test', 'My first realtime message using Fanout.io!!');
```

The second one is creating a file called fanout.html like that, pay attention to change the information about your realm id:

```
>

        My Awesome Fanout + Laravel Example

        My Awesome Fanout + Laravel Example

            var client = new Faye.Client('http://{YOUR-REALM-ID}.fanoutcdn.com/bayeux');
                client.subscribe('my-channel', function (data) {
                alert('Got data: ' + data);
            });

```

Now, open the file fanout.html send your first message usign `php artisan tinker` and run:

```
// Send a notification
Fanout::publish('my-channel', 'My first realtime message using Fanout.io!!');
```

You are free to change the channel name, fanout doesn't force you to create theses channels before send messages.

Find more:
----------

[](#find-more)

This is a simples service provider to help you to quickly implements Fanout in your app, you can find more details about the Fanout PHP sdk on \[\]. Have a look at Fanout (Docs)\[\] to see how to implement the service in your frontend;

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity58

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

3425d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5155786?v=4)[Ricardo Fontanelli](/maintainers/ricardofontanelli)[@ricardofontanelli](https://github.com/ricardofontanelli)

---

Top Contributors

[![ricardofontanelli](https://avatars.githubusercontent.com/u/5155786?v=4)](https://github.com/ricardofontanelli "ricardofontanelli (1 commits)")

---

Tags

composerfanoutfanout-servicelaravelproviderrealmrealtime-updatesservicelaravelwebsocketproviderservice providerrealtimefacadelaravel 5messagesLaravel 4fanout

### Embed Badge

![Health badge](/badges/ricardofontanelli-laravel-fanout-provider/health.svg)

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

###  Alternatives

[ricardofontanelli/laravel-telegram

A simple and lightweight Laravel 4 and 5 wrapper to interact with Telegram Bot.

103.7k](/packages/ricardofontanelli-laravel-telegram)[api-platform/laravel

API Platform support for Laravel

58171.8k14](/packages/api-platform-laravel)[basement-chat/basement-chat

Add a real-time chat widget to your Laravel application.

4984.0k](/packages/basement-chat-basement-chat)[vinelab/minion

A Simple WAMP (Web Application Messaging Protocol) server and command line tool

1276.5k](/packages/vinelab-minion)

PHPackages © 2026

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