Giter Site home page Giter Site logo

probe's Introduction

System Information Provider

This package provide an easy interface to get information about system it is running on.

$provider = \probe\Factory::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();
  • 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();

Table of methods supported by different OS

TBD

Supported OS

  • Linux
  • Windows

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

Other OS

There are incomplete implementations of other OS providers in the separate branches. If you can help me to implement it faster, make pull requests.

TODO

  • disk usage
  • rx/tx
  • processes list

probe's People

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.