PHPackages                             apanicker/hekr-cloud-api-client - 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. apanicker/hekr-cloud-api-client

ActiveLibrary[API Development](/categories/api)

apanicker/hekr-cloud-api-client
===============================

HEKR IOT API Client for PHP

v1.0.1(6y ago)06[1 issues](https://github.com/aravindpanicker/hekr-cloud-api-client/issues)[1 PRs](https://github.com/aravindpanicker/hekr-cloud-api-client/pulls)MITPHPPHP ^7.2.5

Since Jun 15Pushed 3y ago1 watchersCompare

[ Source](https://github.com/aravindpanicker/hekr-cloud-api-client)[ Packagist](https://packagist.org/packages/apanicker/hekr-cloud-api-client)[ RSS](/packages/apanicker-hekr-cloud-api-client/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (3)Versions (4)Used By (0)

Hekr Client for PHP
===================

[](#hekr-client-for-php)

A simple PHP API Client for [HEKR IoT Cloud](https://docs.hekr.me/v4/%E4%BA%91%E7%AB%AFAPI/%E7%99%BB%E5%BD%95%E6%B3%A8%E5%86%8C/).

```
use Hekr\User;
use Hekr\Device;
use Hekr\Client;

//Initialize the client
$client = new Client();

//Setup user value object
$user = new User('user@test.com', 'password');

//Generate Access Token for the user
$auth = $client->auth($user);

//Fetch all IoT devices associated with the user account
$response = $client->setAccessToken($auth['access_token'])->getAllDevices();

$devices = $response['data'];

//Set up the device value object
$device = new Device(
    $devices[0]['ctrlKey'],
    $devices[0]['devTid'],
    $devices[0]['productPublicKey']
);

//Fetch latest device snapshot
$snapshot = $client->setAccessToken($this->accessToken)
                ->setDevice($device)
                ->getDeviceSnapshot();

```

### Installation

[](#installation)

#### With Composer

[](#with-composer)

```
composer require apanicker/hekr-cloud-api-client

```

```
{
    "require": {
        "apanicker/hekr-cloud-api-client": "^1.0.0"
    }
}

```

### Testing

[](#testing)

In order to use the test suite, make sure you update your hekr username and password in `tests/ClientTest.php`

```
$ phpunit
PHPUnit 8.5.5 by Sebastian Bergmann and contributors.

....                                                                4 / 4 (100%)

Time: 14.95 seconds, Memory: 6.00 MB

OK (4 tests, 8 assertions)

```

###  Health Score

23

—

LowBetter than 25% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% 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 ~0 days

Total

2

Last Release

2254d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ed00da21cac9d0acf65c0bf6640fa05297ddbf5e10205c03f44f0eeeb44d0779?d=identicon)[apnicker](/maintainers/apnicker)

---

Top Contributors

[![aravindpanicker](https://avatars.githubusercontent.com/u/3197412?v=4)](https://github.com/aravindpanicker "aravindpanicker (9 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/apanicker-hekr-cloud-api-client/health.svg)

```
[![Health](https://phpackages.com/badges/apanicker-hekr-cloud-api-client/health.svg)](https://phpackages.com/packages/apanicker-hekr-cloud-api-client)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.3M49](/packages/tencentcloud-tencentcloud-sdk-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

353.6k](/packages/eslazarev-wildberries-sdk)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k832.6k54](/packages/neuron-core-neuron-ai)[files.com/files-php-sdk

Files.com PHP SDK

2482.9k](/packages/filescom-files-php-sdk)[volcengine/volcengine-php-sdk

119.5k](/packages/volcengine-volcengine-php-sdk)

PHPackages © 2026

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