PHPackages                             giannisftaras/smartthings - 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. giannisftaras/smartthings

ActiveLibrary[API Development](/categories/api)

giannisftaras/smartthings
=========================

A PHP wrapper for the Samsung Smart Things API

1.0.0(4y ago)0102Apache-2.0PHPPHP &gt;=7.1.0

Since Dec 30Pushed 4y ago2 watchersCompare

[ Source](https://github.com/giannisftaras/smartthings)[ Packagist](https://packagist.org/packages/giannisftaras/smartthings)[ Docs](https://github.com/giannisftaras/smartthings)[ RSS](/packages/giannisftaras-smartthings/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

PHP - Samsung Smart Things API
==============================

[](#php---samsung-smart-things-api)

This library is a simple PHP wrapper for the Smart Things API. At the moment the library utilizes only a single endpoint from the API since I don't have all the devices listed to test it with. If you want support for more devices you can implement your own calls &amp; functions and create a pull request to merge it to the main branch. For the API calls the [GuzzleHTTP](https://github.com/guzzle/guzzle) library is used as a dependency and is already included in the main package.

#### Supported devices:

[](#supported-devices)

- TV

#### Installation:

[](#installation)

You can install the library using `composer` or by simply downloading this repository and including it in your project. Installation using `composer`:

```
composer require giannisftaras/smartthings

```

#### Usage:

[](#usage)

Follow the instructions at the Smart Things Developer page on how to create a [Personal Access (Bearer) Token](https://developer-preview.smartthings.com/docs/advanced/authorization-and-permissions/#personal-access-tokens) for authenticating with the API. Then you can use the following code for testing:

```

```

You can view the TV class in `/src/smartThings/devices/tv.php` for all available functions and commands.

You can also make a basic usage of Locations and Rooms:

```
$location = new SmartThings\Locations('');
$location->get_rooms();

$room = new SmartThings\Room('');
$room->name();
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity44

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1591d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/32f1073f424235e3b40d7a71d3b21d6359f9d6b41f4f3a111b7dfc31d7772e04?d=identicon)[giannisftaras](/maintainers/giannisftaras)

---

Top Contributors

[![giannisftaras](https://avatars.githubusercontent.com/u/4802763?v=4)](https://github.com/giannisftaras "giannisftaras (8 commits)")

---

Tags

apilibraryphpsamsungsmartthings

### Embed Badge

![Health badge](/badges/giannisftaras-smartthings/health.svg)

```
[![Health](https://phpackages.com/badges/giannisftaras-smartthings/health.svg)](https://phpackages.com/packages/giannisftaras-smartthings)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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