kicken / php-etherwake
Send wake-on-lan packets with PHP
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/kicken/php-etherwake
Requires
- php: ^8.0
This package is auto-updated.
Last update: 2025-10-07 03:51:31 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);