Download the PHP package webpatser/fledge-pulse without Composer

On this page you can find all versions of the php package webpatser/fledge-pulse. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package fledge-pulse

Fledge Pulse

Fiber-safe Pulse for the Fledge framework, with pluggable storage drivers.

Tests Packagist Version

webpatser/fledge-pulse is Laravel Pulse made safe for fibers. It targets apps running on Fledge, where Livewire cards render in parallel fibers, databases may be native async drivers (such as fledge-mariadb-native) 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.

Install

fledge-pulse replaces laravel/pulse, so remove the original first:

Requirements

Usage

Configuration, recorders and cards work exactly like Laravel Pulse, so the Laravel Pulse docs cover dashboard and recorder usage. This README only covers what Fledge adds: the storage driver registry and the fiber guarantees below.

What it is

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.

Storage driver registry

Upstream always binds DatabaseStorage, whatever pulse.storage.driver says. Here that setting works. Laravel\Pulse\Fiber\Storage\StorageManager is a standard Laravel Manager, Storage::class resolves through it, and the default driver is database (FiberDatabaseStorage).

FiberDatabaseStorage is fiber-safe on every supported connection, in two different ways:

The lock is reentrant within one fiber. Don't start a child fiber with async() and await it from inside a storage call on the same shared connection: the child would wait for the lock its parent holds.

Octane and other long-lived workers. StorageManager caches the driver instance per application instance, like every Laravel Manager. If you change pulse.storage.* config after the first resolve, call app(StorageManager::class)->forgetDrivers() so the next resolve picks it up. The storage mutexes are static and keyed by connection name, so they live for the whole worker process; that is intended, because an idle mutex holds no state and the holder is cleared on every exit path.

Pick a driver in config/pulse.php or the environment:

A package (or your app) registers its own driver with extend. The callback gets the container and returns a Laravel\Pulse\Contracts\Storage:

Then set PULSE_STORAGE_DRIVER=clickhouse. Implement every method on the Storage contract (store, trim, purge, values, graph, aggregate, aggregateTypes, aggregateTotal) and return the same shapes as DatabaseStorage; the cards depend on them. Avoid static closures in extend, because Manager rebinds the callback to itself.

An Elasticsearch driver is available as webpatser/fledge-pulse-elasticsearch. It stores raw entries and aggregates at query time, and is selected with PULSE_STORAGE_DRIVER=elasticsearch.

Fiber guarantees

The one upstream file edited

src/Support/PulseMigration.php decided whether a migration should run by matching getDriverName() against mariadb, mysql, pgsql and sqlite, which rejected native connections. It now checks the connection class instead. Everything else upstream is untouched, which keeps syncing new Pulse releases cheap.

Credits

fledge-pulse is based on Laravel Pulse v1.8.1, created by Taylor Otwell and Jess Archer with the Laravel team and contributors, and released under the MIT license. The original license and copyright notice are kept in LICENSE.md. This repo starts fresh from that source with a single commit, so the upstream commit history lives in laravel/pulse. Big thanks to Taylor, Jess and everyone who built Pulse; this package rides on their work.

License

MIT, see LICENSE.md.


All versions of fledge-pulse with dependencies

PHP Build Version
Package Version
Requires php Version ^8.5
doctrine/sql-formatter Version ^1.4.1
guzzlehttp/promises Version ^1.0|^2.0|^3.0
laravel/sentinel Version ^1.0
league/uri Version ^7.5.1
livewire/livewire Version ^4.4.8
nesbot/carbon Version ^2.67|^3.0
symfony/console Version ^6.0|^7.0|^8.0
webpatser/fledge-fiber Version ^13.38
webpatser/fledge-framework Version ^13.38
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package webpatser/fledge-pulse contains the following files

Loading the files please wait ...