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/uriis replaced by PHP's nativeUri\Rfc3986\Uri(fledge-fiber still requiresleague/uri ^7.0). See Native URI. symfony/polyfill-php84,symfony/polyfill-php85andsymfony/polyfill-php86are removed.- The
version_compareguards 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,SELECTand 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 ICUCollatorfor the process'sLC_COLLATElocale. Withoutext-intlit compares byte-wise.- Numeric validation rules, including
gt,gte,ltandlte, agree on which strings count as numbers.
The complete list is in FLEDGE-CHANGELOG.md in the framework repository.