cpiber/puller

A laravel package for broadcasting events using long-polling

Maintainers

Package info

github.com/cpiber/puller

pkg:composer/cpiber/puller

Statistics

Installs: 4

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.1 2025-12-29 18:39 UTC

This package is auto-updated.

Last update: 2026-03-29 01:14:06 UTC


README

A laravel package for broadcasting events using long-polling

Installation

php artisan install:broadcasting  # do not install reverb, puller will be used instead
composer require as247/puller
php artisan migrate
npm i puller-js

Usage

1. Update broadcasting driver in .env file

BROADCAST_DRIVER=puller

2. Configure Echo

import Echo from 'laravel-echo'
import Puller from 'puller-js'
window.Echo = new Echo({
    broadcaster: Puller.echoConnect,
});

Troubleshooting

  • If Laravel does not pick up the puller driver, add it to your bootstrap/providers.php:

    <?php
    
    return [
        App\Providers\AppServiceProvider::class,
        // ... your other service providers ...
        As247\Puller\PullerServiceProvider::class,
    ];
  • To publish the puller configuration as well as database migrations, run this command: php artisan vendor:publish --provider "As247\Puller\PullerServiceProvider"