PHPackages                             ggottwald/miio - 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. ggottwald/miio

ActiveLibrary

ggottwald/miio
==============

Control Xiaomi Mi Home devices

0.7.1(6y ago)162494[1 issues](https://github.com/ggottwald/MiIO/issues)GNU AFFERO GENERAL PUBLIC LICENSEPHPPHP &gt;=7.0

Since Feb 17Pushed 5y ago2 watchersCompare

[ Source](https://github.com/ggottwald/MiIO)[ Packagist](https://packagist.org/packages/ggottwald/miio)[ RSS](/packages/ggottwald-miio/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (8)Dependencies (2)Versions (9)Used By (0)

MiIO
====

[](#miio)

With this package you can control Xiaomi Mi Home devices that implement the miIO protocol, such as the Mi Robot Vacuum and other Smart Home devices. These devices are commonly part of what Xiaomi calls the Mi Ecosystem which is branded as MiJia.

Example
=======

[](#example)

Get device start cleaning and get status of mi robot vacuum

```
// mir robot vacuum
$robotDeviceName = 'mirobot_vacuum';
$robotToken = '00112233445566778899aabbccddeeff';

$miRobot = Factory::miRobot($robotDeviceName, $robotToken);

// start cleaning
$miRobot->start();

// get status
var_export($miRobot->status());
```

Set power of mi air purifier

```
// air purifier
$purifierDeviceName = 'air_purifier';
$purifierToken = '00112233445566778899aabbccddeeff';

$purifier = Factory::airPurifier($purifierDeviceName, $purifierToken);

$purifier->setPower(true);
```

More information about the protocol and commands can be found at

License
-------

[](#license)

This project is licensed under the GNU AFFERO GENERAL PUBLIC LICENSE - see the [LICENSE.md](/LICENSE.md) file for details.

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

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

Recently: every ~174 days

Total

8

Last Release

2304d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/93bcd3594d0d19c2f089fb93da67d26b568f5f8955946d4a5cd121427988e97a?d=identicon)[CoreTex](/maintainers/CoreTex)

---

Top Contributors

[![ggottwald](https://avatars.githubusercontent.com/u/10021058?v=4)](https://github.com/ggottwald "ggottwald (34 commits)")[![al-one](https://avatars.githubusercontent.com/u/4549099?v=4)](https://github.com/al-one "al-one (1 commits)")

---

Tags

control-xiaomi-mimi-robot-vacuummiiomijiaphpphp7smarthomevacuum-cleanerxiaomi

### Embed Badge

![Health badge](/badges/ggottwald-miio/health.svg)

```
[![Health](https://phpackages.com/badges/ggottwald-miio/health.svg)](https://phpackages.com/packages/ggottwald-miio)
```

###  Alternatives

[composer/composer

Composer helps you declare, manage and install dependencies of PHP projects. It ensures you have the right stack everywhere.

29.4k187.2M2.6k](/packages/composer-composer)[ccxt/ccxt

A cryptocurrency trading API with more than 100 exchanges in JavaScript / TypeScript / Python / C# / PHP / Go

41.5k328.9k1](/packages/ccxt-ccxt)[league/geotools

Geo-related tools PHP 7.3+ library

1.4k5.3M26](/packages/league-geotools)[laravel-workflow/laravel-workflow

Durable workflow engine that allows users to write long running persistent distributed workflows (orchestrations) in PHP powered by Laravel queues.

1.2k446.6k6](/packages/laravel-workflow-laravel-workflow)[ezimuel/ringphp

Fork of guzzle/RingPHP (abandoned) to be used with elasticsearch-php

179109.4M10](/packages/ezimuel-ringphp)[team-reflex/discord-php

An unofficial API to interact with the voice and text service Discord.

1.1k379.4k24](/packages/team-reflex-discord-php)

PHPackages © 2026

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