PHPackages                             xtend/smart-relay-sdk - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. xtend/smart-relay-sdk

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

xtend/smart-relay-sdk
=====================

SDK For Generic Smart Relay Device

0.1(3y ago)01721BSD-3-ClausePHPPHP ^7.4 || ^8.1

Since Oct 13Pushed 3y ago2 watchersCompare

[ Source](https://github.com/xtendindonesia/smart-relay-php-sdk)[ Packagist](https://packagist.org/packages/xtend/smart-relay-sdk)[ Docs](http://xtendindonesia.co.id)[ RSS](/packages/xtend-smart-relay-sdk/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (1)Versions (3)Used By (0)

Smart Relay PHP SDK
===================

[](#smart-relay-php-sdk)

Xtend Smart Relay PHP SDK

This contain PHP SDK for Generic Smart Relay

Feature
-------

[](#feature)

- Connect to Xtend Smart Relay socket
- Push command for turning on/off selected Pin
- Read Pin status
- Read Switch

Usage
-----

[](#usage)

```
$host = '192.168.100.18';
$port = 50000;
$smartRelay = new \Xtend\Device\SmartRelay($host, $port);
try {
    $smartRelay->open();                                   // open connection to socket
    var_dump($smartRelay->isConnect());                    // check device status
    var_dump($smartRelay->push(3, SmartRelay::PIN_ON));    // turn on 3rd pin
    var_dump($smartRelay->push(3, SmartRelay::PIN_OFF));   // turn off 3rd pin
    $smartRelay->close();                                  // close cocket connection
} catch (\RuntimeException $e) {
    echo $e->getMessage();
}
```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

1359d ago

### Community

Maintainers

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

---

Top Contributors

[![dollyaswin](https://avatars.githubusercontent.com/u/107206?v=4)](https://github.com/dollyaswin "dollyaswin (5 commits)")[![xtendindonesia](https://avatars.githubusercontent.com/u/37057235?v=4)](https://github.com/xtendindonesia "xtendindonesia (2 commits)")

---

Tags

phpsdkcontrollerphp-sdkiotDevices

### Embed Badge

![Health badge](/badges/xtend-smart-relay-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/xtend-smart-relay-sdk/health.svg)](https://phpackages.com/packages/xtend-smart-relay-sdk)
```

PHPackages © 2026

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