spiral/goridge
High-performance PHP-to-Go IPC bridge for calling Golang net/rpc services from PHP. Works over TCP/Unix sockets or pipes, supports JSON/MsgPack and raw []byte payloads, includes robust error handling, runs on Windows, and has minimal dependencies.
The package goridge (previously misrepresented or unverified) is now confirmed as a legitimate, actively maintained Laravel/PHP package under the RoadRunner ecosystem (GitHub: roadrunner-php/goridge). The release notes for v4.2.2 indicate a bug fix (resolving an "Undefined array key 0" warning in the MultiRPC constructor), demonstrating active development and community engagement.
roadrunner package is installed (spatie/laravel-roadrunner).goridge and RoadRunner versions.goridge in high-concurrency scenarios?spatie/laravel-roadrunner compatibility).goridge:
composer require spatie/laravel-roadrunner roadrunner-php/goridge
roadrunner.php or .rr.yaml to enable RPC.composer.json (e.g., roadrunner-php/goridge:^4.2).goridge for a single RPC use case (e.g., real-time notifications).goridge compatibility.spatie/laravel-roadrunner docs for integration help.goridge connections.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| RPC connection drops | Partial service degradation | Implement retry logic (exponential backoff). |
| Go/PHP version mismatch | Runtime crashes | Use version pinning in composer.json. |
| High RPC latency | Poor user experience | Optimize serialization (e.g., Protobuf). |
| RoadRunner server crash | All RPC services fail | Circuit breakers + health checks. |
How can I help you explore Laravel packages today?