karimgeiger/tesmart-api
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()
karimgeiger/tesmart-api 适用场景与选型建议
karimgeiger/tesmart-api 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 140 次下载、GitHub Stars 达 5, 最近一次更新时间为 2022 年 04 月 03 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 karimgeiger/tesmart-api 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 karimgeiger/tesmart-api 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 140
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 9
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-04-03