acamposm/ping
A simple Laravel package for pinging hosts and checking connectivity. It wraps ping commands behind a clean API, making it easy to test server availability, measure response, and integrate uptime checks into your Laravel apps.
exec() handling yourself.Consider it when:
CAP_NET_RAW in containers.Look elsewhere when:
Adoption criteria (all should be true): internal-only use, you can pin the version and fork if needed, your infra permits ICMP, and the alternative in-house implementation would take more than a few hours to harden.
For executives (30 seconds): We can add basic "is it reachable" network checks to the product with a small, free, MIT-licensed PHP package rather than building it. It's a convenience, not a platform bet — the package has modest adoption and hasn't been updated since late 2021, so we should treat it as replaceable and keep our own thin wrapper in front of it. The strategic value isn't the package; it's the health-check capability it unlocks with minimal engineering time.
For engineering (the practical case):
HealthProbe interface so a swap to a native implementation or a hosted monitor is a one-class change.ping binary and network capabilities in the runtime image; ICMP may be blocked in some environments (including some cloud networks), so we must have a fallback probe (HTTP/TCP) and never let a blocked ICMP read as "down" in customer-facing status.How can I help you explore Laravel packages today?