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 1mo 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 19% 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://www.gravatar.com/avatar/6d14f86736d595f3866990be3ddbcd5ae0cc4019928ffaf94463ba02a4bd5298?d=identicon)[rb-cohen](/maintainers/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

[stripe/stripe-php

Stripe PHP Library

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

A PHP wrapper for Twilio's API

1.6k92.9M270](/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.1M452](/packages/google-gax)

PHPackages © 2026

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