vipsoft / network-interfaces
net_get_interfaces class wrapper
Installs: 18
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/vipsoft/network-interfaces
Requires
- php: >=5.3.6
- ext-zip: *
Requires (Dev)
This package is auto-updated.
Last update: 2025-09-29 02:59:38 UTC
README
A class wrapper to get network interfaces. Provides a shim (using ifconfig
)
for net_get_interfaces
(added in PHP 7.3).
Features
-
Simple to use!
use VIPSoft\NetworkInterfaces; $netif = new NetworkInterfaces; // gets the host name $host = $netif->getHostAddr(); // get network interfaces $interfaces = $netif->getNetworkInterfaces();
Copyright
Copyright (c) 2023 Anthon Pang. See LICENSE for details.
Contributors
- Anthon Pang robocoder