2017 © Pedro Peláez
 

library probe

System information provider

image

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

The README.md

System Information Provider

Build Status, (*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

  • Linux
  • Windows
  • MacOS

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

The Versions

04/05 2018

dev-master

9999999-dev

System information provider

  Sources   Download

MIT

The Development Requires

04/05 2018

1.0.1

1.0.1.0

System information provider

  Sources   Download

MIT

The Development Requires

23/02 2017

1.0.0

1.0.0.0

System information provider

  Sources   Download

MIT

The Development Requires

10/01 2017

0.2.2

0.2.2.0

System information provider

  Sources   Download

MIT

The Development Requires

26/06 2015

0.2.1

0.2.1.0

System information provider

  Sources   Download

MIT

The Development Requires

07/05 2015

0.2.0

0.2.0.0

System information provider

  Sources   Download

MIT

The Development Requires

03/03 2015

0.1.0

0.1.0.0

System information provider

  Sources   Download

MIT

The Development Requires