Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/trntv/probe
PHP System Information Provider
https://github.com/trntv/probe
os-info php-library php7 system-information
Last synced: 4 days ago
JSON representation
PHP System Information Provider
- Host: GitHub
- URL: https://github.com/trntv/probe
- Owner: trntv
- License: mit
- Created: 2015-03-01T23:27:33.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2020-05-19T18:04:19.000Z (over 4 years ago)
- Last Synced: 2024-12-10T00:42:15.810Z (13 days ago)
- Topics: os-info, php-library, php7, system-information
- Language: PHP
- Homepage:
- Size: 56.6 KB
- Stars: 35
- Watchers: 10
- Forks: 19
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
System Information Provider
================================
[![Build Status](https://travis-ci.org/trntv/probe.svg?branch=master)](https://travis-ci.org/trntv/probe)This package provide an easy interface to get information about system it is running on.
```php
$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`.
```php
[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