PHPackages                             beshkin/micloud-php - 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. beshkin/micloud-php

ActiveLibrary

beshkin/micloud-php
===================

PHP client for managing Mi devices over cloud

v1.0.0(3y ago)018MITPHP

Since Jul 15Pushed 3y ago1 watchersCompare

[ Source](https://github.com/beshkin/micloud-php)[ Packagist](https://packagist.org/packages/beshkin/micloud-php)[ RSS](/packages/beshkin-micloud-php/feed)WikiDiscussions main Synced 1mo ago

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

Mi Cloud client library
=======================

[](#mi-cloud-client-library)

Current PHP library helps to manage Mi devices through cloud access.

Installation
------------

[](#installation)

`$ composer require beshkin/micloud-php`

Usage
-----

[](#usage)

### Power On device

[](#power-on-device)

```
$config = [
    'country' => 'de', // 'ru', 'us', 'tw', 'sg', 'cn', 'de'
    'login' => [your Mi app login],
    'password' => [your Mi app password],
]
$client = new MiCloudClient($config);
$client->login();
$result = $client->miioCall(
    [Device id],
    'set_power',
    Helper::withLightEffect('on', 5)
);

```

### Get device data

[](#get-device-data)

I use this method in order to get sensor data (temperature, humidity etc)

```
$config = [
    'country' => 'de', // 'ru', 'us', 'tw', 'sg', 'cn', 'de'
    'login' => [your Mi app login],
    'password' => [your Mi app password],
]
$client = new MiCloudClient($config);
$client->login();
$result = $client->request('/home/device_list', ['dids' => [your device id]]);

```

Special thanks
--------------

[](#special-thanks)

Basically this library is a translation from node-mihome library cloud client () Thanks Samuel Jansem for inspiration.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

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

1402d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/82a0fc029f6c3841de9027e1a7333d379c925afe231b8275ddc3033f54a7a110?d=identicon)[beshkin](/maintainers/beshkin)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/beshkin-micloud-php/health.svg)

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.6k509.9M17.0k](/packages/laravel-framework)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/vapor-cli

The Laravel Vapor CLI

31310.7M8](/packages/laravel-vapor-cli)[netflie/whatsapp-cloud-api

The first PHP SDK to send and receive messages using a cloud-hosted version of the WhatsApp Business Platform

640431.7k4](/packages/netflie-whatsapp-cloud-api)[tempest/framework

The PHP framework that gets out of your way.

2.1k23.1k9](/packages/tempest-framework)[blair2004/nexopos

The Free Modern Point Of Sale System build with Laravel, TailwindCSS and Vue.js.

1.2k2.3k](/packages/blair2004-nexopos)

PHPackages © 2026

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