karimgeiger/tesmart-api
最新稳定版本:v1.2.0
Composer 安装命令:
composer require karimgeiger/tesmart-api
包简介
PHP API-wrapper for tesmart KVM switches
README 文档
README
Note: This is not an official library, nor is it related to TESmart in any way.
This library implements the HDMI Switch (KVM) communication protocol by TESmart and provides a simple PHP wrapper to control the switch.
Tested with
This library has only been tested with the 16x1 TESmart KVM switch.
Current features
Currently, this library supports the following actions:
| Description | Method |
|---|---|
| get current active input | getInput(): int |
| switch to given input | setInput(int $input): void |
| set LED timeout settings | setLedTimeout(int $seconds): void |
| mute/unmute buzzer | setBuzzer(bool $enabled): void |
Requirements
The only requirements for this library are PHP 8.0+ and composer.
Usage
See example.php for a simple CLI script to get and switch inputs.
- Add to your project:
composer require karimgeiger/tesmart-api
- Initialize the client in your project:
$client = new \TesmartApi\Client('192.168.1.10', 5000);
- Use the client:
$client->getInput()
统计信息
- 总下载量: 138
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-04-03