Download the PHP package patelworld/systeminfo without Composer
On this page you can find all versions of the php package patelworld/systeminfo. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download patelworld/systeminfo
More information about patelworld/systeminfo
Files in patelworld/systeminfo
Package systeminfo
Short Description To fetch system related information such as RAM, Disk, Drive, Motherboard e.t.c.
License MIT
Informations about the package systeminfo
System Information
System Info is a PHP library that gives the system related information based on WMIC command.
Table of Contents
- System Information
- Table of Contents
- Installation
- Basic Usage
- Namespacing
- Examples
- Class and Methods
- Battery
- Board
- Cpu
- Disk Drive
- Graphics card
- Logical Drive
- Memory Chip (RAM)
- Network Adapter
- OS
- Sound Device
- USB
Installation
Basic Usage
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
Class and Methods
Battery
Board
Cpu
Disk Drive
Method | return type | description |
---|---|---|
diskCount() | int |
it return int where the value is count of total phycical disk available in machine |
details() | 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. |