PHPackages                             yii-starter-kit/yii2-probe - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. yii-starter-kit/yii2-probe

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

yii-starter-kit/yii2-probe
==========================

System information provider

2.0.0(2mo ago)01MITPHPPHP ^8.4CI passing

Since Mar 9Pushed 2mo agoCompare

[ Source](https://github.com/yii-starter-kit/yii2-probe)[ Packagist](https://packagist.org/packages/yii-starter-kit/yii2-probe)[ RSS](/packages/yii-starter-kit-yii2-probe/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

System Information Provider
===========================

[](#system-information-provider)

[![CI](https://github.com/yii-starter-kit/yii2-probe/actions/workflows/ci.yml/badge.svg)](https://github.com/yii-starter-kit/yii2-probe/actions/workflows/ci.yml)

Requires **PHP 8.4+**.

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

```
$provider = \YiiStarterKit\Probe\ProviderFactory::create();
$provider->getCpuModel();
$provider->getCpuUsage();
$provider->getFreeMem();
```

Available methods
-----------------

[](#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()
- getCpuPhysicalCores()
- 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
------------

[](#supported-os)

- Linux
- Windows
- MacOS

**Note**: To get Windows System Information, you must have `php_com_dotnet.dll` enabled in your `php.ini`.

```
[COM_DOT_NET]
extension=php_com_dotnet.dll
```

Linux Specific methods
----------------------

[](#linux-specific-methods)

- getCoresPerSocket()
- getCpuinfoByLsCpu()

Contributing
------------

[](#contributing)

Any help in any way is welcome.

TODO
----

[](#todo)

- disk usage
- rx/tx
- processes list

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance87

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor3

3 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

64d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3fd1ace71516f0450becfde434768c796da0e314b6a20ed4900ff3ee0f1cc081?d=identicon)[XzAeRo](/maintainers/XzAeRo)

---

Top Contributors

[![rotexdegba](https://avatars.githubusercontent.com/u/1242622?v=4)](https://github.com/rotexdegba "rotexdegba (4 commits)")[![imamerkhanov](https://avatars.githubusercontent.com/u/655416?v=4)](https://github.com/imamerkhanov "imamerkhanov (4 commits)")[![TechKat](https://avatars.githubusercontent.com/u/6548963?v=4)](https://github.com/TechKat "TechKat (3 commits)")[![XzAeRo](https://avatars.githubusercontent.com/u/1656037?v=4)](https://github.com/XzAeRo "XzAeRo (2 commits)")[![trntv](https://avatars.githubusercontent.com/u/1162056?v=4)](https://github.com/trntv "trntv (2 commits)")[![aiddroid](https://avatars.githubusercontent.com/u/3241146?v=4)](https://github.com/aiddroid "aiddroid (2 commits)")[![typomedia](https://avatars.githubusercontent.com/u/5276515?v=4)](https://github.com/typomedia "typomedia (1 commits)")[![ivanfilatov](https://avatars.githubusercontent.com/u/10758036?v=4)](https://github.com/ivanfilatov "ivanfilatov (1 commits)")[![bepsvpt](https://avatars.githubusercontent.com/u/8221099?v=4)](https://github.com/bepsvpt "bepsvpt (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/yii-starter-kit-yii2-probe/health.svg)

```
[![Health](https://phpackages.com/badges/yii-starter-kit-yii2-probe/health.svg)](https://phpackages.com/packages/yii-starter-kit-yii2-probe)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
