PHPackages                             rb-cohen/php-hive-v6 - 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. rb-cohen/php-hive-v6

ActiveLibrary[API Development](/categories/api)

rb-cohen/php-hive-v6
====================

PHP SDK for controlling Hive using the v6 API

110PHP

Since Mar 30Pushed 9y ago2 watchersCompare

[ Source](https://github.com/rb-cohen/php-hive-v6)[ Packagist](https://packagist.org/packages/rb-cohen/php-hive-v6)[ RSS](/packages/rb-cohen-php-hive-v6/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

php-hive-v6
===========

[](#php-hive-v6)

Hive home heating and smart devices PHP SDK

Install
-------

[](#install)

`$ composer require rb-cohen/php-hive-v6:dev-master`

List devices
------------

[](#list-devices)

### Using the CLI script

[](#using-the-cli-script)

`$ php bin/devices.php --username test@test.com --password 12345`

### Using the SDK

[](#using-the-sdk)

```
$authentication = new Credentials($username, $password);
$client = new Client($authentication);

$devices = new Devices($client);
$list = $devices->all();
```

Control smart plug
------------------

[](#control-smart-plug)

### Using the CLI script

[](#using-the-cli-script-1)

`$ php bin/smartPlug.php --username test@test.com --password 12345 --id  --on`

### Using the SDK

[](#using-the-sdk-1)

```
$authentication = new Credentials($username, $password);
$client = new Client($authentication);

$plug = new SmartPlug($id, $client);
$plug->on()
     ->apply();
```

Control colour bulb
-------------------

[](#control-colour-bulb)

### Using the CLI script

[](#using-the-cli-script-2)

`$ php bin/bulb.php --username test@test.com --password 12345 --id  --brightness 50 --colour rgb(255, 221, 211) --on`

### Using the SDK

[](#using-the-sdk-2)

```
$authentication = new Credentials($username, $password);
$client = new Client($authentication);

$bulb = new BulbColour($id, $client);
$bulb->on()
     ->setBrightness(50)
     ->setColour('#ff0000')
     ->apply();
```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/203873940?v=4)[rb-cohen](/maintainers/rb-cohen)[@rb-cohen](https://github.com/rb-cohen)

---

Top Contributors

[![arronwoods](https://avatars.githubusercontent.com/u/778702?v=4)](https://github.com/arronwoods "arronwoods (9 commits)")

---

Tags

british-gasbritishgashivephpsdk-phpsmarthome

### Embed Badge

![Health badge](/badges/rb-cohen-php-hive-v6/health.svg)

```
[![Health](https://phpackages.com/badges/rb-cohen-php-hive-v6/health.svg)](https://phpackages.com/packages/rb-cohen-php-hive-v6)
```

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