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.
ping binary must exist, the PHP process must be allowed to execute it, ICMP must not be blocked, and the host OS must support the flags the package emits. Docker/container, shared hosting, and restricted PaaS environments need explicit validation.ping, use raw sockets, or depend on an extension? Which OS commands/flags are assumed? Is input escaped and validated? Are timeouts, packet counts, IPv4/IPv6, and locale-specific output handled? What does it return on timeout vs. DNS failure vs. permission failure? Is there a maintained fork or credible alternative? Can we wrap and replace it without changing application code?HostReachability contract with this package as one adapter.Symfony Process/ping, an HTTP health check, or a managed monitoring probe so replacement is low-cost.ping is installed, setuid/raw-socket permissions are acceptable, and outbound ICMP is allowed by network policy. Check Windows/macOS/Linux differences only if local development requires them; production should be pinned to one known OS contract.How can I help you explore Laravel packages today?