承接 karimgeiger/tesmart-api 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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.

  1. Add to your project:
composer require karimgeiger/tesmart-api
  1. Initialize the client in your project:
$client = new \TesmartApi\Client('192.168.1.10', 5000);
  1. Use the client:
$client->getInput()

统计信息

  • 总下载量: 138
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 5
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-04-03