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

Fledge 13.x

What Is Different

What Fledge changes compared to Laravel 13, taken from the framework README and changelog.

Fledge keeps the Illuminate\ namespace and the Laravel API. The framework's own test suite is the contract: tests from Laravel are not modified, so a failing test means the Fledge change is wrong. The suite passes under --fail-on-deprecation.

Requirements

Laravel 13 Fledge
PHP 8.3 and later ^8.6 only
intl extension optional recommended; without it IDN hosts are not converted to punycode and are rejected, and SORT_LOCALE_STRING sorting compares byte-wise

The php constraint is ^8.6 in the root composer.json and in all 37 src/Illuminate/*/composer.json files.

Removed compatibility code

  • In the framework, league/uri is replaced by PHP's native Uri\Rfc3986\Uri (fledge-fiber still requires league/uri ^7.0). See Native URI.
  • symfony/polyfill-php84, symfony/polyfill-php85 and symfony/polyfill-php86 are removed.
  • The version_compare guards for PHP 8.4 are removed.

This means fewer function_exists() and version_compare() branches in hot paths, less code to autoload, and a smaller opcache footprint. The benefit is structural rather than a per-call speedup. See Benchmarks.

Native PHP features in the framework

Change Where
array_all and array_any Arr::hasAll, Arr::hasAny, FormRequest::isKnownField, MatchesProperties::resolveTruthTest, MatchesAnyOf
array_any Handler::shouldntReport
array_find InterventionDriver::transformationHandlerFor
Pipe operator Pipeline::then()
#[\NoDiscard] Pipeline, Cache, Container, Validation
json_validate() fast path skips decoding invalid JSON
Persistent cURL share manager connection pooling for the HTTP client

Http::persistentConnections() and withPersistentConnections() apply only to Guzzle's own cURL handler. A custom or global handler, including the Fledge fiber handler (which pools its own connections), is left unchanged.

Fiber-based I/O

These changes depend on fledge-fiber, the async runtime the framework requires, and fledge-loop, its event loop.

Change Effect
fiber driver for the Concurrency facade Tasks run concurrently in one process on the event loop.
fledge Redis client from fledge-fiber (the skeleton's default; set REDIS_CLIENT=fledge in an existing app) Cache, lock, queue and rate limiting calls suspend the current Fiber instead of blocking. When the php-resp3 extension is loaded, fledge-fiber uses it automatically to parse replies.
Fiber-aware cache layer Lock blocking suspends the Fiber; cluster and tag operations run concurrently.
ConcurrentMiddlewareGroup Independent middleware run in parallel.
Queue worker signal handling on fledge-loop SIGTERM, SIGINT and SIGQUIT reach the running job mid-run on both built-in loop drivers.

The event loop driver is selected with FLEDGE_EVENT_LOOP (auto, poll, select).

See Examples for code.

Fiber driver behavior

Tasks run by the fiber driver differ from the sync driver:

  • Tasks do not run inside the parent's open transaction and do not see its uncommitted writes.
  • Each task gets its own database connection per connection name, opened on first use and closed when the task ends. In-memory SQLite connections stay shared.
  • Redis connections are shared between tasks, so MULTI/EXEC, WATCH, SELECT and blocking commands from concurrent tasks on one connection interleave.
  • A task cannot be killed from outside. On a timeout it stops only at an await that receives TaskCancellation::current().
  • run() waits for every task and rethrows the first failure in task order. A failing task does not cancel its siblings.

Queue worker signals

Mid-job signal notification works as on stock Laravel (WorkerInterrupted, Interruptible::interrupted() and JobInterrupted fire). A WorkerInterrupted listener or interrupted() method that does fiber I/O while a CPU-bound job runs cannot suspend inside the signal handler, so keep those free of fiber I/O. WorkerPausing and WorkerResuming (SIGUSR2, SIGCONT) fire at the next event-loop tick, not mid-job.

Redis Cluster

Redis Cluster is supported by fledge-fiber through Laravel's standard clusters.* config. Multi-key commands must share a hash tag ({tag}.key), SELECT to a non-zero database is rejected, and MULTI/EXEC is pinned to one slot.

Other behavior changes

  • Collection::sortBy([...], SORT_LOCALE_STRING) with several comparisons compares with one ICU Collator for the process's LC_COLLATE locale. Without ext-intl it compares byte-wise.
  • Numeric validation rules, including gt, gte, lt and lte, agree on which strings count as numbers.

The complete list is in FLEDGE-CHANGELOG.md in the framework repository.