PHPackages                             elberth90/yeelight-api-client - 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. elberth90/yeelight-api-client

ActiveLibrary

elberth90/yeelight-api-client
=============================

Client library for Yeelight API

1.0.0(7y ago)366465[1 PRs](https://github.com/elberth90/yeelight-api-client/pulls)MITPHPPHP &gt;=7.0.0

Since Jan 24Pushed 7y ago2 watchersCompare

[ Source](https://github.com/elberth90/yeelight-api-client)[ Packagist](https://packagist.org/packages/elberth90/yeelight-api-client)[ Docs](http://www.yeelight.com/en_US/developer)[ RSS](/packages/elberth90-yeelight-api-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (5)Versions (4)Used By (0)

yeelight-api-client
===================

[](#yeelight-api-client)

[![Build Status](https://camo.githubusercontent.com/461945ad65394345df3d1478977bec0d21079fe70f6baacf16ec85490971e72b/68747470733a2f2f7472617669732d63692e6f72672f656c626572746839302f7965656c696768742d6170692d636c69656e742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/elberth90/yeelight-api-client)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/3d8ed2e260e4f857982a4820a4d35e729daa5c1890c14101d8c623b760bbe33e/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f656c626572746839302f7965656c696768742d6170692d636c69656e742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/elberth90/yeelight-api-client/?branch=master)

Yeelight-api-client is a PHP client that makes it easy to manage and handle Yeelight bulbs.

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

[](#installation)

Installation is possible using [Composer](https://getcomposer.org/).

Then install the library:

```
composer require elberth90/yeelight-api-client

```

Getting started
---------------

[](#getting-started)

Create `YeelightClient` instance

```
use Yeelight\YeelightClient;
$client = new \Yeelight\YeelightClient();
```

Search for bulbs in your local network

```
$bulbList = $client->search();
```

Once you have list of available bulbs, you can perform on each bulb some actions like for example getting property of each bulb

```
foreach ($bulbList as $bulb) {
    $promise = $bulb->getProp([\Yeelight\Bulb\BulbProperties::COLOR_TEMPERATURE]);
}
```

Each action performed on bulb return [Promise](https://github.com/reactphp/promise), so you can perform on it `then()` or `done()` operation.

```
$promise->done(function (\Yeelight\Bulb\Response $response) {
    // do something with response
}, function (\Yeelight\Bulb\Exceptions\Exception $exception) {
    // log exception or whatever...
});
```

Full documentation for an API can be found [here](http://www.yeelight.com/download/Yeelight_Inter-Operation_Spec.pdf)

Contributing
------------

[](#contributing)

See [CONTRIBUTING.md](CONTRIBUTING.md) for more information about contributing and developing yeelight-api-client.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~276 days

Total

3

Last Release

2841d ago

Major Versions

v0.5.0-beta → 1.0.02018-07-29

### Community

Maintainers

![](https://www.gravatar.com/avatar/6c44758b43552e2397e208ea65a2a826dd9889700de1e515396be6851e168888?d=identicon)[elberth90](/maintainers/elberth90)

---

Top Contributors

[![elberth90](https://avatars.githubusercontent.com/u/5924223?v=4)](https://github.com/elberth90 "elberth90 (31 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/elberth90-yeelight-api-client/health.svg)

```
[![Health](https://phpackages.com/badges/elberth90-yeelight-api-client/health.svg)](https://phpackages.com/packages/elberth90-yeelight-api-client)
```

###  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)
