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 3d 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 72% 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

2469d ago

Major Versions

v1.0.0 → v2.02018-04-21

### Community

Maintainers

![](https://www.gravatar.com/avatar/e705efefaa112b6dbb90dc587199832e0cdf88bc59d800f38eecba1b321eeab8?d=identicon)[misterx](/maintainers/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

[stripe/stripe-php

Stripe PHP Library

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

A PHP wrapper for Twilio's API

1.6k92.9M272](/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)
