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. [HTTP &amp; Networking](/categories/http)
4. /
5. beshkin/micloud-php

ActiveLibrary[HTTP &amp; Networking](/categories/http)

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

PHP client for managing Mi devices over cloud

v1.0.0(3y ago)020MITPHP

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 today

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 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity48

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

1449d 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.8k543.8M20.1k](/packages/laravel-framework)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[lion/bundle

Lion-framework configuration and initialization package

122.3k4](/packages/lion-bundle)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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