~/docs
Resonate
Resonate
13.x 13.43.0.3, current
Fledge Fiber
Toggle sidebar
Fledge Fiber
webpatser/fledge-fiber 13.43.0.3

Fledge Fiber 13.x

Introduction

Fiber-based async drivers for Fledge, covering MySQL, MariaDB, PostgreSQL, Redis, HTTP, WebSocket, files and parallel work.

Fledge Fiber is the async layer of Fledge. It provides non-blocking drivers that run on PHP fibers and on the fledge-loop event loop, and it plugs them into Laravel's database, Redis, HTTP and Livewire systems. It requires PHP 8.6.

What it provides

  • Database drivers for MySQL, MariaDB and PostgreSQL, implemented in PHP (fledge-mysql, fledge-mariadb, fledge-pgsql).
  • A Redis client that follows phpredis reply shapes for most commands (with documented differences), plus pub/sub, cluster support and reconnects. It uses the php-resp3 extension for parsing when it is loaded.
  • An HTTP/1.1 and HTTP/2 client and server, plus a Guzzle handler (FledgeHandler) and a Symfony HttpClientInterface adapter.
  • WebSocket client and server, non-blocking filesystem I/O, DNS, processes, multi-process worker pools, mutexes and semaphores.
  • Integrations that move mail, Pusher/Reverb broadcasting, S3 and Elasticsearch traffic onto the Fledge HTTP client.

See Packages for the namespaces.

Where it is used

Fledge uses it for async I/O. The service provider (Fledge\Fiber\FiberServiceProvider) is auto-discovered by Laravel, so installing the package is enough to make the drivers available.

PHP version policy

The 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 version ends. Currently that is PHP 8.6.

Versioning

Versions follow Fledge: v13.x.y.z, where the first three digits match the Laravel version and the fourth is the fledge-fiber patch level.

Next steps