karimgeiger/tesmart-api

PHP API-wrapper for tesmart KVM switches

v1.2.0 2022-04-28 08:05 UTC

This package is auto-updated.

Last update: 2024-10-28 13:45:26 UTC


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:

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()