kicken / php-etherwake
Send wake-on-lan packets with PHP
dev-master
2023-05-06 22:16 UTC
Requires
- php: ^8.0
This package is auto-updated.
Last update: 2024-11-07 01:44:06 UTC
README
Generate and send a magic Wake-on-lan packet.
Example
$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);