zenithies/php-toolkit-read-key

1.0.0 2023-06-28 16:07 UTC

This package is not auto-updated.

Last update: 2024-09-19 20:30:38 UTC


README

在Windows和Unix下,使用PHP检测命令行(控制台、cli)环境中的按键(箭头键)

Windows需求

注意,目前它仅在x64版本的Windows上可用,并在Windows 10上使用PHP 8.1.x和8.2.x TS进行了测试

  • 需要PHP COM扩展:extension=php_com_dotnet
  • 您必须使用管理员权限从命令行使用regsvr32 ZenithiesCLIKeys_x64.dll注册从bin/win/ReadKey的DLL文件。
  • 为了方便,请将ZenithiesCLIKeys_x64.dll放在您的系统驱动器上。