~/docs
Resonate
Resonate
1.x 1.8.1.4, current
Fledge Pulse
Toggle sidebar
Fledge Pulse
webpatser/fledge-pulse 1.8.1.4

Fledge Pulse 1.x

Introduction

Fledge Pulse is Laravel Pulse made safe for fibers, for applications running on the Fledge framework.

webpatser/fledge-pulse is Laravel Pulse made safe for fibers. It targets applications running on Fledge, where Livewire cards render in parallel fibers and Redis may be the Fledge client (REDIS_CLIENT=fledge). On stock Pulse that combination gives an empty dashboard, "stream is in use by another fiber" errors and, quite possibly, silently dropped recordings.

The package is derived from Laravel Pulse v1.8.1 and released under the MIT license. The original license and copyright notice are kept in the repository.

What it keeps

Configuration, recorders and cards work exactly like Laravel Pulse, so the Laravel Pulse docs cover dashboard and recorder usage. These pages cover only what Fledge adds.

  • The Laravel\Pulse namespace is kept and composer.json has "replace": {"laravel/pulse": "self.version"}, so packages that depend on laravel/pulse keep resolving.
  • The fiber code is an overlay under src/Fiber/ (Laravel\Pulse\Fiber\...). An auto-discovered FledgePulseServiceProvider rebinds the pieces that need it.
  • Everything else from upstream is untouched, which keeps syncing new Pulse releases cheap.

What it adds

  • A storage driver registry, so pulse.storage.driver is honoured.
  • A fiber-safe database storage that works on a shared PDO.
  • A fiber-scoped Pulse::ignore().
  • A Redis ingest for the Fledge Redis client.
  • pulse:work and pulse:check that wait without blocking the event loop.
  • A rememberMany helper for concurrent card queries.

See What is different for the details.

Requirements

  • PHP 8.6
  • webpatser/fledge-framework
  • webpatser/fledge-fiber
  • Livewire 4

This package supports only the latest stable PHP release. When a new PHP version is released, the next release of this package requires it and support for the previous PHP version ends.

Versioning

Versions follow Fledge's four-segment scheme: v1.8.1.0 is Fledge patch 0 on top of Pulse 1.8.1. The first three segments always match upstream; only the fourth moves for Fledge-only changes.

Elasticsearch storage

An Elasticsearch storage driver is available as a separate package, webpatser/fledge-pulse-elasticsearch. It is documented under the Elasticsearch group in the sidebar.