PHPackages                             cronfig/sysinfo - 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. cronfig/sysinfo

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

cronfig/sysinfo
===============

Library to get system info and available resources

1.0.0(8y ago)428.1k↓31.5%2[2 PRs](https://github.com/cronfig/sysinfo/pulls)MITPHP

Since Sep 5Pushed 1y ago2 watchersCompare

[ Source](https://github.com/cronfig/sysinfo)[ Packagist](https://packagist.org/packages/cronfig/sysinfo)[ RSS](/packages/cronfig-sysinfo/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (5)Used By (0)

System Info
===========

[](#system-info)

[![Latest Version](https://camo.githubusercontent.com/0c0525694e40cacaec3d2a1a7aefb8eac6654b2371f9e58f9d83cf4bbc26e315/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f63726f6e6669672f737973696e666f2e7376673f7374796c653d666c61742d737175617265)](https://github.com/cronfig/sysinfo/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/88fff1c2856cd28866d0f7a0074613b23ee209d9f9f33e8391e75e3d4a36b266/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f63726f6e6669672f737973696e666f2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/cronfig/sysinfo)[![Coverage Status](https://camo.githubusercontent.com/6bd87f1f93822cd5976a14a7b40eb07e86ae38daf140ea52a469320dc9392b05/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f63726f6e6669672f737973696e666f2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/cronfig/sysinfo/code-structure)[![Quality Score](https://camo.githubusercontent.com/ca78e7d49234b862672d3d7aa541fff30c7606adeecdee6c56cb597d5ca41afc/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f63726f6e6669672f737973696e666f2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/cronfig/sysinfo)[![Total Downloads](https://camo.githubusercontent.com/680b6c7558ab4057824a34c1831fec7c7d789e94c23dd6eb2f8a9e5f9e29f3aa/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f63726f6e6669672f737973696e666f2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cronfig/sysinfo)

SysInfo is a simple library to get some info, metrics and available resources of the system the PHP code is running on.

Highlights
----------

[](#highlights)

- Simple API
- Framework-agnostic
- Composer ready, [PSR-2](http://www.php-fig.org/psr/psr-2/) and [PSR-4](http://www.php-fig.org/psr/psr-4/) compliant

System Requirements
-------------------

[](#system-requirements)

**PHP &gt;= 7.0.10** is recommended. It's not required in composer.json so PHP projects stuck on older PHP versions could use it on their own consideration. The library does not work on PHP &lt; 5.6.

This library use some native PHP functions like `shell_exec`, `php_uname`, `disk_total_space`, `disk_free_space`, `sys_getloadavg`, `memory_get_usage`, `memory_get_peak_usage` which may be disabled by some shared hostings.

`sys_getloadavg` is only available on linux based systems. Therefore **Windows is not supported**. The support can be added with new class.

Install
-------

[](#install)

Install `SysInfo` using Composer.

```
$ composer require cronfig/sysinfo

```

Usage
-----

[](#usage)

```
use Cronfig\Sysinfo\System;

// Instantiate the system
$system = new System;

// System can get you the OS you are currently running
$os = $system->getOs();

// Get some metrics like free disk space
$freeSpace = $os->getDiskUsagePercentage();
```

Testing
-------

[](#testing)

`SysInfo` has a [PHPUnit](https://phpunit.de) test suite and a coding style compliance test suite using [PHP CS Fixer](http://cs.sensiolabs.org/). To run the tests, run the following command from the project folder.

```
$ composer test
```

#### Continuous integration

[](#continuous-integration)

- [Travis CI](https://travis-ci.org/cronfig/sysinfo)
- [Scrutinizer CI](https://scrutinizer-ci.com/g/cronfig/sysinfo/)

License
-------

[](#license)

The MIT License (MIT). Please see [LICENSE](LICENSE) for more information.

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 78.6% of commits — single point of failure

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

3177d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/06d22001d49de5bbc059225fef93f75581c81c0c814ba453d8f070382328dc9e?d=identicon)[escopecz](/maintainers/escopecz)

---

Top Contributors

[![escopecz](https://avatars.githubusercontent.com/u/1235442?v=4)](https://github.com/escopecz "escopecz (22 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (4 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")

---

Tags

CPUsystemresourcesinforam

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/cronfig-sysinfo/health.svg)

```
[![Health](https://phpackages.com/badges/cronfig-sysinfo/health.svg)](https://phpackages.com/packages/cronfig-sysinfo)
```

###  Alternatives

[fidry/cpu-core-counter

Tiny utility to get the number of CPU cores.

238148.2M23](/packages/fidry-cpu-core-counter)[pastuhov/php-exec-command

Simple php command executor with param binding.

25205.4k2](/packages/pastuhov-php-exec-command)[saintsystems/nova-resource-group-menu

Resource group sub-menus for Laravel Nova.

2742.7k](/packages/saintsystems-nova-resource-group-menu)

PHPackages © 2026

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