PHPackages                             a15lam/php-iot - 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. a15lam/php-iot

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

a15lam/php-iot
==============

PHP library for controlling household IoT devices.

0.1.3(8y ago)25231Apache-2.0PHPPHP &gt;=5.6

Since Mar 2Pushed 7y ago2 watchersCompare

[ Source](https://github.com/a15lam/php-iot)[ Packagist](https://packagist.org/packages/a15lam/php-iot)[ Docs](https://a15lam.github.io/php-iot/)[ RSS](/packages/a15lam-php-iot/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (6)Used By (1)

php-iot
=======

[](#php-iot)

PHP library to control Wemo devices and Sonoff with custom firmware found [here](https://github.com/a15lam/PT-IoT/blob/master/Socket-Sonoff-AI/Socket-Sonoff-AI.ino).

Currently supports...

1. Wemo light bulb - on/off/dimming/status
2. Wemo light switch - on/off/status
3. Wemo switch (socket) - on/off/status
4. Wemo insight switch - on/off/params/status
5. Sonoff switch (custom firmware) - on/off/status
6. Grouped devices under wemo bridge
7. Device discovery

Getting started:
----------------

[](#getting-started)

```
git clone https://github.com/a15lam/php-iot.git
cd php-iot
composer install
php example/console.php   // An example command line app to control your wemo devices.
```

Usage:
------

[](#usage)

```
$lightSwitch = \a15lam\PhpIot\Discovery::getDeviceByName('Bed Room Light'); // Use your wemo device name as they show on your wemo app. Supports grouped devices
$lightSwitch->On();
sleep(2); // Allow a moment to see the light turning on.
$lightSwitch->Off();
// Get switch status
echo $lightSwitch->status();
```

Check the example directory for more usage. Run example/console.php from command line to control your devices.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Every ~40 days

Total

4

Last Release

3240d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3e29d25b0995c80696669633dabd6c2b07e9a9399951357691d7d2abe786bcd1?d=identicon)[a15lam](/maintainers/a15lam)

---

Top Contributors

[![a15lam](https://avatars.githubusercontent.com/u/582895?v=4)](https://github.com/a15lam "a15lam (15 commits)")

---

Tags

iotsmartsonoffWemo

### Embed Badge

![Health badge](/badges/a15lam-php-iot/health.svg)

```
[![Health](https://phpackages.com/badges/a15lam-php-iot/health.svg)](https://phpackages.com/packages/a15lam-php-iot)
```

PHPackages © 2026

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