Native C++23 PHP extension porting pmmp/raklib, the RakNet implementation used by PocketMine-MP.
Drop-in replacement for the composer package.
What it's for: the whole UDP transport layer of Bedrock — receiving/sending datagrams, RakNet reliability (ACK/NACK, ordering, sequencing), reassembling split packets, and per-player sessions. It runs in its own thread. The whole reliability/session/socket stack executes in C++ with no per-packet upcall into PHP, which is where the real gain is (the micro-benchmark below only shows the zval-boundary cost).
| Operation | PHP | Native | Speedup |
|---|---|---|---|
| EncapsulatedPacket::toBinary | 522 ns/op | 264 ns/op | 2.0× |