clue/connection-manager-extra
Extra connector decorators for ReactPHP Socket. Wrap ConnectorInterface to add retries, timeouts, delays, rejection rules, swapping, consecutive/random selection, concurrency limits and selective routing—without changing your async connect() code.
fsockopen() with ReactPHP).ConnectionManagerRepeat.ConnectionManagerSelective + ConnectionManagerReject.ConnectionManagerDelay.ConnectionManagerRandom or ConnectionManagerConcurrent.Adopt if:
Look elsewhere if:
For Executives: "This package lets us safely scale our async services by adding retry logic, timeouts, and smart routing to network connections—without hiring specialized engineers*. For example:
For Engineers:
*"This is a batteries-included library for ReactPHP’s Socket component. It gives you:
ConnectionManagerRepeat) for flaky services.ConnectionManagerTimeout) to avoid hanging.ConnectionManagerSelective) for ACLs or geo-based rules.$connector = new ConnectionManagerRepeat(
new ConnectionManagerTimeout($socketConnector, 2.0),
3
); // Retry 3x with 2s timeout
No need to reinvent wheels—just slap this on your existing ConnectorInterface implementations. MIT-licensed, PHP 5.3–8.5 compatible, and battle-tested in high-traffic async apps."*
How can I help you explore Laravel packages today?