Fledge's async layer was ported from the amphp packages on 2026-04-10. amphp is MIT licensed, the original copyright notices are kept in the LICENSE file, and the code has been maintained independently since. Fledge Fiber does not follow amphp releases. The event loop is a separate package, fledge-loop, derived from revolt/event-loop v1.1.0.
fledge-fiber itself is licensed under Apache-2.0. Portions derived from amphp are MIT.
Source of each module
The repository records the upstream package and version each module was based on in ORIGINS.md.
| Module | Derived from | Based on version |
|---|---|---|
Fledge\Async core (Future, cancellations, Interval) |
amphp/amp | v3.1.3 |
Fledge\Async (Pipeline, Queue, ConcurrentIterator) |
amphp/pipeline | v1.2.7 |
Fledge\Async\Stream (streams) |
amphp/byte-stream | v2.1.2 |
Fledge\Async\Stream (sockets, TLS) |
amphp/socket | v2.3.1 |
Fledge\Async\Stream\Parser |
amphp/parser | v1.1.1 |
Fledge\Async\Cache |
amphp/cache | v2.0.1 |
Fledge\Async\Sync |
amphp/sync | v2.3.0 |
Fledge\Async\Dns |
amphp/dns | v2.4.0 |
Fledge\Async\File |
amphp/file | v3.2.0 |
Fledge\Async\Process |
amphp/process | v2.0.3 |
Fledge\Async\Parallel |
amphp/parallel | v2.3.4, plus one fix from v2.4.0 |
Fledge\Async\Serialization |
amphp/serialization | v1.1.0 |
Fledge\Async\Database (Sql interfaces) |
amphp/sql | v2.1.1 |
Fledge\Async\Database (pooled/common) |
amphp/sql-common | v2.0.4 |
Fledge\Async\Database\Mysql |
amphp/mysql | v3.1.1 |
Fledge\Async\Database\Postgres |
amphp/postgres | v2.2.1 |
Fledge\Async\Redis |
amphp/redis | v2.0.4 |
Fledge\Async\Http (primitives, cookies, HPack) |
amphp/http | v2.1.2, plus the hpack v3.2.2 chr() fix |
Fledge\Async\Http\Client |
amphp/http-client | v5.3.6 |
Fledge\Async\Http\Server |
amphp/http-server | v3.4.6 |
Fledge\Async\WebSocket |
amphp/websocket | v2.0.4 |
Fledge\Async\WebSocket\Client |
amphp/websocket-client | v2.0.2 |
Fledge\Async\WebSocket\Server |
amphp/websocket-server | v4.0.0 |
All of these are MIT licensed.
Security fixes present since the import
- CVE-2025-8671 "MadeYouReset" HTTP/2 DoS, fixed in amphp/http-server v3.4.4: the
RESET_STREAM_RATIOsliding-window reset protection inHttp/Server/Driver/Http2Driver.php. - HTTP/2 ping flood mitigation, from amphp/http-server v3.4.5: a ping counter with
ENHANCE_YOUR_CALMinHttp/Server/Driver/Http2Driver.php.
Notable differences from the originals
- Sockets and TLS: the independent
verifyPeerNameAPI is removed;verify_peer_namealways followsverifyPeer. - Debug flag:
AMP_DEBUGdetection is replaced by aFLEDGE_DEBUGenvironment flag. - PHP version: the
PHP_VERSION_IDguards are dropped, because only the latest stable PHP is supported. - MySQL: the handshake charset is 45 (
utf8mb4_general_ci) instead of 255, which is MySQL 8 only. When TLS is configured the handshake requiresCLIENT_SSL, and a server greeting without it fails withSqlConnectionExceptioninstead of continuing in plaintext. - Postgres:
PostgresConfiggainssslCert,sslKeyandsslRootCertfor Laravel parity. - Redis: a structured
RedisConfig::fromParameters()constructor,CommandKeySpecfor phpredis-style key prefixing and aReconnectingRedisLinkwith a read timeout and configurable backoff. Errors inside an array reply (one failing command inEXEC) are kept as values instead of tearing down the shared connection. - HTTP client: the Laravel handler bypasses the default
HttpClientBuilderpipeline, so Guzzle middleware owns redirects, retries and decompression.
amphp and Revolt remain a source of inspiration, and fixes from either are judged case by case.
Syncing
The repository does not describe a sync process with the amphp packages. It states that Fledge does not track amphp releases.