PHPackages                             clue/wol-react - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. clue/wol-react

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

clue/wol-react
==============

Turn on your PC with Wake-On-LAN (WOL) requests

v0.1.0(12y ago)158785[1 issues](https://github.com/clue/php-wake-on-lan-react/issues)MITPHP

Since May 11Pushed 11y ago4 watchersCompare

[ Source](https://github.com/clue/php-wake-on-lan-react)[ Packagist](https://packagist.org/packages/clue/wol-react)[ Docs](https://github.com/clue/wol-reactphp)[ RSS](/packages/clue-wol-react/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

clue/wol-react [![Build Status](https://camo.githubusercontent.com/50334f0373680de33a492a3cbe6e0c2399428e8115916456d70c2399c643f347/68747470733a2f2f7472617669732d63692e6f72672f636c75652f7068702d77616b652d6f6e2d6c616e2d72656163742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/clue/php-wake-on-lan-react)
============================================================================================================================================================================================================================================================================================================================

[](#cluewol-react-)

Turn on your PC with [Wake-On-LAN](http://en.wikipedia.org/wiki/Wake-on-LAN) (WOL) requests

> Note: This project is in beta stage! Feel free to report any issues you encounter.

Usage
-----

[](#usage)

Once [installed](#install), using this library is as simple as running:

```
$loop = React\EventLoop\Factory::create();
$wolFactory = new Clue\React\Wol\Factory($loop);

$wolFactory->createSender()->then(function(Clue\React\Wol\Sender $wol) {
    $wol->send('11:22:33:44:55:66');
});

$loop->run();
```

If your environment requires a non-default broadcast address (the default is: `255.255.255.255:7`), for example `1.2.3.4:9`. You can pass that to the `createSender` method on the `Factory`. For example:

```
$loop = React\EventLoop\Factory::create();
$wolFactory = new Clue\React\Wol\Factory($loop);

$wolFactory->createSender('1.2.3.4:9')->then(function(Clue\React\Wol\Sender $wol) {
    $wol->send('11:22:33:44:55:66');
});

$loop->run();
```

There's also a CLI script in `bin/wol.php` to send a WOL request from the command line simply by running:

```
$ php bin/wol.php 11:22:33:44:55:66
```

Introduction
------------

[](#introduction)

The following short introduction is mostly taken from wikipedia's [article about WOL](http://en.wikipedia.org/wiki/Wake-on-LAN):

Wake-on-LAN ("WOL") is implemented using a specially designed packet called a magic packet, which is sent to the computer to be woken up. The magic packet contains the MAC address of the destination computer. Powered-down computers capable of Wake-on-LAN will contain network devices able to "listen" to incoming packets in low-power mode while the system is powered down. If a magic packet is received that is directed to the device's MAC address, the NIC signals the computer's power supply to initiate system wake-up, much in the same way as pressing the power button would do.

The magic packet is a broadcast frame containing anywhere within its payload 6 bytes of all 255 (FF FF FF FF FF FF in hexadecimal), followed by sixteen repetitions of the target computer's 48-bit MAC address, for a total of 102 bytes.

Since the magic packet is only scanned for the string above, and not actually parsed by a full protocol stack, it may be sent as any network- and transport-layer protocol, although this library uses a typical UDP datagram. The magic packet is usually sent on the data link layer (layer 2 in the OSI model) and when sent, is broadcast to all attached devices on a given network, using the network broadcast address; the IP-address (layer 3 in the OSI model) is not used.

Install
-------

[](#install)

The recommended way to install this library is [through composer](http://getcomposer.org). [New to composer?](http://getcomposer.org/doc/00-intro.md)

```
{
    "require": {
        "clue/wol-react": "0.1.*"
    }
}
```

License
-------

[](#license)

MIT

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4390d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/776829?v=4)[Christian Lück](/maintainers/clue)[@clue](https://github.com/clue)

---

Top Contributors

[![clue](https://avatars.githubusercontent.com/u/776829?v=4)](https://github.com/clue "clue (42 commits)")[![WyriHaximus](https://avatars.githubusercontent.com/u/147145?v=4)](https://github.com/WyriHaximus "WyriHaximus (6 commits)")

---

Tags

WOLwake on LAN

### Embed Badge

![Health badge](/badges/clue-wol-react/health.svg)

```
[![Health](https://phpackages.com/badges/clue-wol-react/health.svg)](https://phpackages.com/packages/clue-wol-react)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
