PHPackages                             weesee/yii2-system-info - 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. weesee/yii2-system-info

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

weesee/yii2-system-info
=======================

Yii2 extension for operating system information

1.1.0(7y ago)11.3kMITPHPPHP &gt;=5.4.0

Since Feb 16Pushed 7y ago1 watchersCompare

[ Source](https://github.com/WeeSee/yii2-system-info)[ Packagist](https://packagist.org/packages/weesee/yii2-system-info)[ RSS](/packages/weesee-yii2-system-info/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (5)Used By (0)

Yii2 extension to get Operating System Systen Information
=========================================================

[](#yii2-extension-to-get-operating-system-systen-information)

Provides information about your system/server.

It automatically detects the type of system that you are using and provides you with appropriate information.

Supported OS
------------

[](#supported-os)

- Windows
- Linux
- OSX (Darwin)

Methods
-------

[](#methods)

- getOS
- getKernelVersion
- getHostname
- getCpuModel
- getCpuVendor
- getCpuFreq
- getCpuArchitecture
- getCpuCores
- getLoad
- getUpTime
- getPhpVersion
- getServerName
- getServerProtocol
- getServerSoftware
- getTotalMemory

Installation
------------

[](#installation)

Add System-Info to the require section of your **composer.json** file:

```
{
    "require": {
        "weesee/yii2-system-info": "~1.1.0"
    }
}
```

And run following command to download extension using **composer**:

```
$ php composer.phar update
```

Usage
-----

[](#usage)

Get all Data in your controller/action:

```
use weesee\systemInfo\models\SystemInfo;

public function actionShowinfo()
{
    // Initialize  Information to work with the current operating system
    $sysInfo = new SystemInfo();
    // get system details as Yii2 model
    $sysInfo->getInfo();
    // hand it over to view
    return $this->render('sysinfo',['sysInfo'=>$sysInfo]);
}
```

and display in your view with a model:

```
echo DetailView::widget([
    'model' => $sysInfo,
    'attributes' => $sysInfo->attributes(),
]);

echo $sysInfo->totalMemory;
```

FAQ
---

[](#faq)

#### `COM` not found

[](#com-not-found)

From `PHP 5.4.5`, `COM` is no longer built into the php core. You have to add `COM` support in `php.ini`:

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

Otherwise you will see this in your error log: `Fatal error: Class \'COM\' not found`

Contribution
------------

[](#contribution)

Contributing instructions are located in [CONTRIBUTING.md](CONTRIBUTING.md) file.

Author &amp; Credits
--------------------

[](#author--credits)

Author:

Credits to:

- [abhi1693/yii2-system-info](https://github.com/abhi1693/yii2-system-info)
- [icex/yii2-system-info](https://github.com/icex/yii2-system-info)

(C) 2018 WeeSee

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor2

2 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

Every ~418 days

Total

4

Last Release

2847d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/62e4205dd63b1c6eaf80da0387ac1085882620e7830b634dafc42b6b8c1be0a6?d=identicon)[WeeSee](/maintainers/WeeSee)

---

Top Contributors

[![abhi1693](https://avatars.githubusercontent.com/u/5083532?v=4)](https://github.com/abhi1693 "abhi1693 (14 commits)")[![kingzeus](https://avatars.githubusercontent.com/u/2177109?v=4)](https://github.com/kingzeus "kingzeus (10 commits)")[![WeeSee](https://avatars.githubusercontent.com/u/3421590?v=4)](https://github.com/WeeSee "WeeSee (10 commits)")[![icex](https://avatars.githubusercontent.com/u/2853554?v=4)](https://github.com/icex "icex (8 commits)")

### Embed Badge

![Health badge](/badges/weesee-yii2-system-info/health.svg)

```
[![Health](https://phpackages.com/badges/weesee-yii2-system-info/health.svg)](https://phpackages.com/packages/weesee-yii2-system-info)
```

###  Alternatives

[nervo/yuicompressor

YUI Compressor is an open source tool that supports the compression of both JavaScript and CSS files. The JavaScript compression removes comments and white-spaces as well as obfuscates local variables using the smallest possible variable name. CSS compression is done using a regular-expression-based CSS minifier.

161.5M5](/packages/nervo-yuicompressor)[rmunate/laravel_helpers

Empower Your Laravel Journey: Unleash the Power of Helpers! Unlock a world of possibilities with our standard creation and seamless utilization of helpers within the Laravel framework. Our solution offers a simple, efficient, and elegant way to execute your application's custom methods from any class or view, making development a breeze. Supercharge your Laravel project and elevate your coding experience with our Helper Library.

552.8k](/packages/rmunate-laravel-helpers)

PHPackages © 2026

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