insign/get-os

仅提供一种简单且一致的方式来确定当前PHP运行的是哪种操作系统。

维护者

详细信息

github.com/insign/get-os

源代码

问题

安装: 173

依赖项: 1

建议者: 0

安全: 0

星标: 2

关注者: 2

分支: 1

类型:项目

v1.0.3 2020-11-13 18:26 UTC

This package is auto-updated.

Last update: 2024-09-14 02:43:12 UTC


README

仅提供一种简单且一致的方式来确定当前PHP运行的是哪种操作系统。

  • 支持Linux、Mac和Windows
// Unknown = 1
// Windows = 2
// Linux = 3
// Mac = 4

echo getOS::ofServer(); // Return a integer