mice-soft/php-sky-remote

dev-master 2018-02-25 10:33 UTC

This package is not auto-updated.

Last update: 2024-09-24 08:43:06 UTC


README

通过 TCP/IP 在 PHP 中控制 Sky HD/Q 机顶盒

用法

use PhpSkyRemote\PhpSkyRemote;

$remote = new PhpSkyRemote('192.168.0.X'); // Replace with sky box IP

// Send single command
$remote->press('home');

// Send single command using constants
$remote->press(PhpSkyRemote::COMMAND_HOME);

// Send multiple commands using a string...
$remote->press('home up select');

// ... or an array
$remote->press(['home', 'up', 'select']);

// ... or an array of constants
$remote->press([
  PhpSkyRemote::COMMAND_HOME,
  PhpSkyRemote::COMMAND_UP,
  PhpSkyRemote::COMMAND_SELECT,
]);

鸣谢

本项目通过将 https://github.com/dalhundal/sky-remote 转换为 PHP 完成。非常感谢 Dal Hundal 编写了这个程序。没有他的工作,这不会变得容易...