PHPackages                             patelworld/systeminfo - 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. patelworld/systeminfo

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

patelworld/systeminfo
=====================

To fetch system related information such as RAM, Disk, Drive, Motherboard e.t.c.

v1.0.0(1y ago)09MITPHP

Since May 27Pushed 1y ago1 watchersCompare

[ Source](https://github.com/PatelWorld/system-info)[ Packagist](https://packagist.org/packages/patelworld/systeminfo)[ RSS](/packages/patelworld-systeminfo/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (3)Used By (0)

System Information
==================

[](#system-information)

System Info is a PHP library that gives the system related information based on WMIC command.

[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)

---

Table of Contents
-----------------

[](#table-of-contents)

- [System Information](#system-information)
    - [Table of Contents](#table-of-contents)
    - [Installation](#installation)
    - [Basic Usage](#basic-usage)
        - [Namespacing](#namespacing)
        - [Examples](#examples)
    - [Class and Methods](#class-and-methods)
        - [Battery](#battery)
        - [Board](#board)
        - [Cpu](#cpu)
        - [Disk Drive](#disk-drive)
        - [Graphics card](#graphics-card)
        - [Logical Drive](#logical-drive)
        - [Memory Chip (RAM)](#memory-chip-ram)
        - [Network Adapter](#network-adapter)
        - [OS](#os)
        - [Sound Device](#sound-device)
        - [USB](#usb)

---

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

[](#installation)

```
composer require patelworld/systeminfo
```

Basic Usage
-----------

[](#basic-usage)

### Namespacing

[](#namespacing)

The System Information library is under `PatelWorld\SystemInfo` namespace.

Once you have installed the System Information library, fetching system information is really simple.

First, If you are working in a fremework then create a new instance of the desired type and import the related class on top of the php file with `use statement`. Example given below. The class are availbale to use statically.

Next, just call the method name statically on class. `ClassName::methodName()`

### Examples

[](#examples)

```
use PatelWorld\SystemInfo\DiskDrive;

echo DiskDrive::diskCount(); //2
print_r(DiskDrive::getSerialNumber()); // Array
Array
(
    [0] => KINGSTON XAB400S374580X
    [1] => SW1000MP010-2WPX305
)
```

Class and Methods
-----------------

[](#class-and-methods)

### Battery

[](#battery)

```
use PatelWorld\SystemInfo\Battery;

print_r(Battery::details());
print_r(Battery::getSize());
print_r(Battery::getPartNumber());
print_r(Battery::getAttributes(["Name","Description"]));
```

### Board

[](#board)

```
use PatelWorld\SystemInfo\Board;

print_r(Board::details());
print_r(Board::getModel());
print_r(Board::getSerialNumber());
print_r(Board::getManufacturer());
print_r(Board::getAttributes(["Name","Description"]));
```

### Cpu

[](#cpu)

```
use PatelWorld\SystemInfo\Cpu;

print_r(Cpu::details());
print_r(Cpu::getModel());
print_r(Cpu::getManufacturer());
print_r(Cpu::getAttributes(["Name","Description"]));
```

### Disk Drive

[](#disk-drive)

```
use PatelWorld\SystemInfo\DiskDrive;

print_r(DiskDrive::diskCount());
print_r(DiskDrive::details());
print_r(DiskDrive::getModel());
print_r(DiskDrive::getSerialNumber());
print_r(DiskDrive::getSize());
print_r(DiskDrive::getPartitionsCount());
print_r(DiskDrive::getManufacturer());
print_r(DiskDrive::getDiskDetails());
print_r(DiskDrive::getWindowsDiskDetails());
print_r(DiskDrive::getAttributes(["Name","Description"]));
```

Methodreturn typedescriptiondiskCount()`int`it return `int` where the value is count of total phycical disk available in machinedetails()`array`it return `array` where the main array contains index array and each index contains the all possible information of disk(n). *n* is the count of disk.getModel()`array`it return `array` where the main array contains index array and each index contains the model number of nth element in the list of disk.### Graphics card

[](#graphics-card)

```
use PatelWorld\SystemInfo\GraophicsCard;

print_r(GraophicsCard::details());
print_r(GraophicsCard::getModel());
print_r(GraophicsCard::getManufacturer());
print_r(GraophicsCard::getAttributes(["Name","Description"]));
```

### Logical Drive

[](#logical-drive)

```
use PatelWorld\SystemInfo\LocicalDrive;

print_r(LocicalDrive::details());
print_r(LocicalDrive::getAttributes(["Name","Description"]));
```

### Memory Chip (RAM)

[](#memory-chip-ram)

```
use PatelWorld\SystemInfo\MemoryChip;

print_r(MemoryChip::details());
print_r(MemoryChip::getSize());
print_r(MemoryChip::getPartNumber());
print_r(MemoryChip::getAttributes(["Name","Description"]));
```

### Network Adapter

[](#network-adapter)

```
use PatelWorld\SystemInfo\NetworkAdapter;

print_r(NetworkAdapter::details());
print_r(NetworkAdapter::getAttributes(["Name","Description"]));
```

### OS

[](#os)

```
use PatelWorld\SystemInfo\Os;

print_r(Os::details());
print_r(Os::getBuildNumber());
print_r(Os::getManufacturer());
print_r(Os::getSerialNumber());
print_r(Os::getSystemDrive());
print_r(Os::getAttributes(["Name","Description"]));
```

### Sound Device

[](#sound-device)

```
use PatelWorld\SystemInfo\SoundDevice;

print_r(SoundDevice::details());
print_r(SoundDevice::getProductName());
print_r(SoundDevice::getManufacturer());
print_r(SoundDevice::getStatus());
print_r(SoundDevice::getAttributes(["Name","Description"]));
```

### USB

[](#usb)

```
use PatelWorld\SystemInfo\Usb;

print_r(Usb::details());
print_r(Usb::getName());
print_r(Usb::getManufacturer());
print_r(Usb::getAttributes(["Name","Description"]));
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

721d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/38c9155b44202f35c3315ff34f72e5f53894414a01ab1a9a69c90442918461b6?d=identicon)[patelnwd](/maintainers/patelnwd)

---

Top Contributors

[![patelnwd](https://avatars.githubusercontent.com/u/10633999?v=4)](https://github.com/patelnwd "patelnwd (6 commits)")

---

Tags

phpphp-librarysystem-informationwmic

### Embed Badge

![Health badge](/badges/patelworld-systeminfo/health.svg)

```
[![Health](https://phpackages.com/badges/patelworld-systeminfo/health.svg)](https://phpackages.com/packages/patelworld-systeminfo)
```

###  Alternatives

[oittaa/uuid

A small PHP class for generating RFC 9562 universally unique identifiers (UUID) from version 3 to version 8.

50302.7k5](/packages/oittaa-uuid)[mbezhanov/ethereum-converter

A simple library for performing conversion between various Ethereum units

1836.7k](/packages/mbezhanov-ethereum-converter)[wbraganca/yii2-nested-set-behavior

This extension allows you to get functional for nested set trees.

229.4k](/packages/wbraganca-yii2-nested-set-behavior)[x-wp/di

The dependency injection container for WordPress

301.1k10](/packages/x-wp-di)

PHPackages © 2026

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