PHPackages                             emiliopedrollo/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. [API Development](/categories/api)
4. /
5. emiliopedrollo/yeelight-api-client

ActiveLibrary[API Development](/categories/api)

emiliopedrollo/yeelight-api-client
==================================

Client library for Yeelight API

02PHP

Since Apr 19Pushed 3y agoCompare

[ Source](https://github.com/emiliopedrollo/yeelight-api-client)[ Packagist](https://packagist.org/packages/emiliopedrollo/yeelight-api-client)[ RSS](/packages/emiliopedrollo-yeelight-api-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)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

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity22

Early-stage or recently created project

 Bus Factor1

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

### Community

Maintainers

![](https://www.gravatar.com/avatar/442cd299d4ec476168c0d4274a4f2f784573c61d27a0a955067bc05233bbcec5?d=identicon)[emiliopedrollo](/maintainers/emiliopedrollo)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M271](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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