PHPackages                             olivia/os-info - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. olivia/os-info

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

olivia/os-info
==============

Application easily parsing and displaying system information of the host.

1.0(8y ago)59MITPHPPHP ^7.1

Since Apr 21Pushed 8y ago1 watchersCompare

[ Source](https://github.com/anomalylab/os-info)[ Packagist](https://packagist.org/packages/olivia/os-info)[ Docs](https://anomaly.ink)[ RSS](/packages/olivia-os-info/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Operating system information
============================

[](#operating-system-information)

Application easily parsing and displaying system information of the host.

### Installer

[](#installer)

```
	composer require olivia/os-info
```

### Use

[](#use)

#### Basic

[](#basic)

```
	$info = new Olivia\OsInfo\OSInfo(
		new Linfo\Linfo
	);

	// Cpu
	echo $info->getCpu();
```

#### Laravel or other PHP framework

[](#laravel-or-other-php-framework)

```
	use Olivia\OsInfo\OSInfo;

	$info = app(OSInfo::class);

	// Cpu
	echo $info->getCpu();
```

### API

[](#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

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2945d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7c52a844b37ff37e8fa6d7bf4b482d8ff4ef15e250098d1f60bd19041d953834?d=identicon)[billwithjiali](/maintainers/billwithjiali)

---

Tags

codeigniterfuelphplaravelosphp7symfonythinkphpyii2

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/olivia-os-info/health.svg)

```
[![Health](https://phpackages.com/badges/olivia-os-info/health.svg)](https://phpackages.com/packages/olivia-os-info)
```

###  Alternatives

[matriphe/larinfo

Display system information (IP address, OS, versions) for Laravel.

4739.9k3](/packages/matriphe-larinfo)[laramall/laravel-system-info

查看服务器所有信息 system info

311.0k1](/packages/laramall-laravel-system-info)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
