{"id":35066001,"url":"https://github.com/arronwoods/php-hive-v6","last_synced_at":"2026-05-22T10:15:07.628Z","repository":{"id":62533676,"uuid":"84008849","full_name":"arronwoods/php-hive-v6","owner":"arronwoods","description":"Hive home heating and smart devices PHP SDK","archived":false,"fork":false,"pushed_at":"2017-03-30T22:03:55.000Z","size":20,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-11-30T13:58:19.525Z","etag":null,"topics":["british-gas","britishgas","hive","php","sdk-php","smarthome"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arronwoods.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-05T23:01:51.000Z","updated_at":"2017-03-30T22:07:39.000Z","dependencies_parsed_at":"2022-11-02T16:01:04.452Z","dependency_job_id":null,"html_url":"https://github.com/arronwoods/php-hive-v6","commit_stats":null,"previous_names":["arronwoods/php-hive-v6"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/arronwoods/php-hive-v6","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arronwoods%2Fphp-hive-v6","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arronwoods%2Fphp-hive-v6/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arronwoods%2Fphp-hive-v6/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arronwoods%2Fphp-hive-v6/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arronwoods","download_url":"https://codeload.github.com/arronwoods/php-hive-v6/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arronwoods%2Fphp-hive-v6/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28077909,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-27T02:00:05.897Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["british-gas","britishgas","hive","php","sdk-php","smarthome"],"created_at":"2025-12-27T11:02:54.142Z","updated_at":"2025-12-27T11:05:12.432Z","avatar_url":"https://github.com/arronwoods.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# php-hive-v6\nHive home heating and smart devices PHP SDK\n\n## Install\n`$ composer require rb-cohen/php-hive-v6:dev-master`\n\n## List devices\n\n### Using the CLI script\n`$ php bin/devices.php --username test@test.com --password 12345`\n\n### Using the SDK\n```php\n$authentication = new Credentials($username, $password);\n$client = new Client($authentication);\n\n$devices = new Devices($client);\n$list = $devices-\u003eall();\n```\n\n## Control smart plug\n### Using the CLI script\n`$ php bin/smartPlug.php --username test@test.com --password 12345 --id \u003cid\u003e --on`\n\n### Using the SDK\n```php\n$authentication = new Credentials($username, $password);\n$client = new Client($authentication);\n\n$plug = new SmartPlug($id, $client);\n$plug-\u003eon()\n     -\u003eapply();\n```\n\n## Control colour bulb\n### Using the CLI script\n`$ php bin/bulb.php --username test@test.com --password 12345 --id \u003cid\u003e --brightness 50 --colour rgb(255, 221, 211) --on`\n\n### Using the SDK\n```php\n$authentication = new Credentials($username, $password);\n$client = new Client($authentication);\n\n$bulb = new BulbColour($id, $client);\n$bulb-\u003eon()\n     -\u003esetBrightness(50)\n     -\u003esetColour('#ff0000')\n     -\u003eapply();\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farronwoods%2Fphp-hive-v6","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farronwoods%2Fphp-hive-v6","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farronwoods%2Fphp-hive-v6/lists"}