trntv/probe
最新稳定版本:1.0.1
Composer 安装命令:
composer require trntv/probe
包简介
System information provider
README 文档
README
This package provide an easy interface to get information about system it is running on.
$provider = \Probe\ProviderFactory::create(); $provider->getCpuModel(); $provider->getCpuUsage(); $provider->getFreeMem();
Available methods
- getOsRelease()
- getOsType();
- getOsKernelVersion();
- getArchitecture();
- getDbVersion(\PDO $connection);
- getDbInfo(\PDO $connection);
- getDbType(\PDO $connection);
- getTotalMem();
- getFreeMem();
- getUsedMem();
- getTotalSwap();
- getFreeSwap();
- getUsedSwap();
- getHostname();
- isLinuxOs();
- isWindowsOs();
- isBsdOs();
- isMacOs();
- getUptime();
- getPhysicalCpus();
- getCpuCores();
- getCpuPhysicalCore();
- getCpuModel();
- getCpuUsage();
- getServerIP();
- getExternalIP();
- getServerSoftware();
- isISS();
- isNginx();
- isApache();
- getPhpInfo($what = -1);
- getPhpVersion();
- getPhpDisabledFunctions();
- getPhpModules();
- isPhpModuleLoaded($module);
- getPing(array $hosts = null, $count = 2);
- getServerVariable($key);
- getPhpSapiName();
- isFpm();
- isCli();
Supported OS
- Linux
- Windows
- MacOS
Note: To get Windows System Information, you hould have php_com_dotnet.dll enabled in your php.ini.
[COM_DOT_NET]
extension=php_com_dotnet.dll
Linux Specific methods
- getCoresPerSocket()
- getCpuinfoByLsCpu()
Contributing
I don't have any special rules for it. Any help in any way will be useful.
TODO
- disk usage
- rx/tx
- processes list
统计信息
- 总下载量: 626.68k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 35
- 点击次数: 1
- 依赖项目数: 11
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-03-01