olivia/os-info
Composer 安装命令:
composer require olivia/os-info
包简介
Application easily parsing and displaying system information of the host.
README 文档
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
统计信息
- 总下载量: 9
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-04-21