kicken / php-etherwake
使用PHP发送唤醒网络包
dev-master
2023-05-06 22:16 UTC
Requires
- php: ^8.0
This package is auto-updated.
Last update: 2024-09-07 01:24:27 UTC
README
生成并发送一个神奇的唤醒网络包。
示例
$targetMac = "b4:2e:99:ed:3e:20";
//Send magic packet to global broadcast address 255.255.255.255 on UDP port 9
\Kicken\Etherwake\etherwake($targetMac);
//Send magic packet to network broadcast address 192.168.10.255 on UDP port 9
\Kicken\Etherwake\etherwake($targetMac, '192.168.10.255');
//Send magic packet to network broadcast address 192.168.10.255 on UDP port 7
\Kicken\Etherwake\etherwake($targetMac, '192.168.10.255', 7);