ali-eltaweel / cpu-info
CPU Info.
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/ali-eltaweel/cpu-info
Requires
- php: ^8.1
- ali-eltaweel/dto: ^1.4.0
- ali-eltaweel/files: ^1.1.0
This package is auto-updated.
Last update: 2025-11-02 19:02:42 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 |