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
Requires
- php: ^8.1
- ali-eltaweel/dto: ^1.4.0
- ali-eltaweel/files: ^1.1.0
This package is auto-updated.
Last update: 2026-03-02 19:38:41 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 |