Download the PHP package giannisftaras/smartthings without Composer
On this page you can find all versions of the php package giannisftaras/smartthings. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download giannisftaras/smartthings
More information about giannisftaras/smartthings
Files in giannisftaras/smartthings
Package smartthings
Short Description A PHP wrapper for the Samsung Smart Things API
License Apache-2.0
Homepage https://github.com/giannisftaras/smartthings
Informations about the package smartthings
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 & functions and create a pull request to merge it to the main branch. For the API calls the GuzzleHTTP library is used as a dependency and is already included in the main package.
Supported devices:
- TV
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:
Follow the instructions at the Smart Things Developer page on how to create a Personal Access (Bearer) Token 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: