ali-eltaweel/cpu-info

There is no license information available for the latest version (1.0.0) of this package.

CPU Info.

1.0.0 2025-07-02 18:21 UTC

This package is auto-updated.

Last update: 2025-07-02 18:22:35 UTC


README

Installation

Install cpu-info via Composer:

composer require ali-eltaweel/cpu-info

Usage

use CPUInfo\CpuInfo;

$cpuinfo = CpuInfo::local();

foreach ($cpuinfo as $processor) {

  // ...
}

$firstProcessor = $cpuinfo[0];

Processor Fields

Field Name Type
vendor string
family int
model int
modelName string
stepping int
microcode int
frequency float
cacheSize int
physicalId int
siblings int
coreId int
cores int
apicId int
initialApicId int
fpu bool
fpuException bool
cpuidLevel int
writeProtect bool
flags string[]
vmxFlags string[]
bugs string[]
bogomips float
clflushSize int
cacheAlignment int
addressSizes string[]
powerManagement string