olivia/os-info

Application easily parsing and displaying system information of the host.

1.0 2018-04-21 11:24 UTC

This package is not auto-updated.

Last update: 2024-04-08 04:19:21 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