olivia / os-info
Application easily parsing and displaying system information of the host.
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 1
Forks: 0
pkg:composer/olivia/os-info
Requires
- php: ^7.1
- linfo/linfo: ^4.0
Requires (Dev)
- mockery/mockery: ^1.0
- phpunit/phpunit: ^7.0
This package is not auto-updated.
Last update: 2025-10-06 11:15:54 UTC
README
Application easily parsing and displaying system information of the host.
Installer
composer require olivia/os-info
Use
Basic
$info = new Olivia\OsInfo\OSInfo( new Linfo\Linfo ); // Cpu echo $info->getCpu();
Laravel or other PHP framework
use Olivia\OsInfo\OSInfo; $info = app(OSInfo::class); // Cpu echo $info->getCpu();
API
- getCpu() : string
- getServer() : string
- getMemory() : string
- getMysqlVersion(string $host = '127.0.0.1', string $username = 'root', ?string password = null) : string
- getPHPVersion() : string
- getUploadMaxFileSize() : string