PHPackages                             thephpguys/broadlink - 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. thephpguys/broadlink

ActiveLibrary[API Development](/categories/api)

thephpguys/broadlink
====================

PHP7 Broadlink API library

v2.0(8y ago)201113[2 issues](https://github.com/ThePHPGuys/broadlink/issues)MITPHP

Since Apr 19Pushed 6y ago6 watchersCompare

[ Source](https://github.com/ThePHPGuys/broadlink)[ Packagist](https://packagist.org/packages/thephpguys/broadlink)[ RSS](/packages/thephpguys-broadlink/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (4)Used By (0)

Broadlink API PHP7 library
==========================

[](#broadlink-api-php7-library)

A PHP 7 library for controlling IR and Wireless 433Mhz controllers from [Broadlink](http://www.ibroadlink.com/rm/). The protocol refer to [mjg59/python-broadlink](https://github.com/mjg59/python-broadlink/blob/master/README.md)

Currently supported only RM Devices

Discover all devices in network:

```
use TPG\Broadlink\Device\AbstractDevice;
use TPG\Broadlink\Device\HasTemperatureSensorInterface;
use TPG\Broadlink\Device\RMDevice;

$devices = AbstractDevice::discover();
$response=[];
foreach ($devices as $device){

    $device->authenticate();

    $deviceResponse = [
        'model' => $device->getModel(),
        'name' => $device->getName(),
        'ip' => $device->getIP(),
        'mac' => $device->getMac(),
    ];

    if($device instanceof HasTemperatureSensorInterface){
        $deviceResponse['temperature'] = sprintf("%01.1f",$device->getTemperature());
    }

    $response[] = $deviceResponse;
}

echo json_encode($response);
```

Will produce:

```
[
    {
        "model": "RM2 Pro Plus",
        "name": "Living Room",
        "ip": "192.168.88.15",
        "mac": "34:ea:cc:cc:cc:bc",
        "temperature": "22.0"
    },
    {
        "model": "RM2 Pro Plus",
        "name": "Sleeping Room",
        "ip": "192.168.88.14",
        "mac": "34:ea:cc:cc:cc:bf",
        "temperature": "21.7"
    }
]
```

Use already known device:

```
use TPG\Broadlink\Device\RMDevice;

$device = new RMDevice('192.168.88.15','34:ea:cc:cc:cc:bc');
$device->authenticate();
echo $device->getTemperature();
```

### Draft implementation of Broadlink Catalog Cloud

[](#draft-implementation-of-broadlink-catalog-cloud)

```
use TPG\Broadlink\Cloud\Catalog;

$catalog = new Catalog('/path/where/you/want/to/save/remotes');
$remotes = $catalog->search('Samsung');

//Download first remote
print_r($remotes[0]->download());

//Or download all found remotes
foreach($remotes as $remote){
    $remote->download();
}
```

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 71.4% 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 ~239 days

Total

3

Last Release

2515d ago

Major Versions

v1.0.0 → v2.02018-04-21

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/216417?v=4)[Vad](/maintainers/misterx)[@misterx](https://github.com/misterx)

---

Top Contributors

[![vadim-tpg](https://avatars.githubusercontent.com/u/91753039?v=4)](https://github.com/vadim-tpg "vadim-tpg (5 commits)")[![misterx](https://avatars.githubusercontent.com/u/216417?v=4)](https://github.com/misterx "misterx (2 commits)")

### Embed Badge

![Health badge](/badges/thephpguys-broadlink/health.svg)

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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