library probe
System information provider
trntv/probe
System information provider
- Friday, May 4, 2018
- by trntv
- Repository
- 8 Watchers
- 27 Stars
- 55,173 Installations
- PHP
- 10 Dependents
- 0 Suggesters
- 17 Forks
- 0 Open issues
- 7 Versions
- 6 % Grown
, (*1)
This package provide an easy interface to get information about system it is running on., (*2)
$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
Note: To get Windows System Information, you hould have php_com_dotnet.dll
enabled in your php.ini
., (*3)
[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., (*4)
TODO
- disk usage
- rx/tx
- processes list
dev-master
9999999-dev
System information provider
Sources
Download
MIT
The Development Requires
1.0.1
1.0.1.0
System information provider
Sources
Download
MIT
The Development Requires
1.0.0
1.0.0.0
System information provider
Sources
Download
MIT
The Development Requires
0.2.2
0.2.2.0
System information provider
Sources
Download
MIT
The Development Requires
0.2.1
0.2.1.0
System information provider
Sources
Download
MIT
The Development Requires
0.2.0
0.2.0.0
System information provider
Sources
Download
MIT
The Development Requires
0.1.0
0.1.0.0
System information provider
Sources
Download
MIT
The Development Requires