Download the PHP package dimtrov/sysinfo without Composer
On this page you can find all versions of the php package dimtrov/sysinfo. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dimtrov/sysinfo
More information about dimtrov/sysinfo
Files in dimtrov/sysinfo
Package sysinfo
Short Description A lightweight tool to retrieve informations about your PHP environment
License MIT
Informations about the package sysinfo
dimtrov/sysinfo (PHP System Informations)
A lightweight tool to retrieve informations about your PHP environment
dimtrov/sysinfo
is a simple library to get some info, metrics and available resources of the system the PHP code is running on.
Highlights
- Simple API
- Framework-agnostic
- Composer ready, [PSR-2] and [PSR-4] compliant
System Requirements
PHP >= 7.4
This library use some native PHP functions like shell_exec
, php_uname
, disk_total_space
, disk_free_space
, memory_get_usage
, memory_get_peak_usage
which may be disabled by some shared hostings.
Installation
Usage
Basics
Static calls
You can also get informations via a static call of a function like
Grouped informations
You can access to the specific informations grouped by category. for example you can get all the CPU informations in one time
It's also possible to get all informations with all()
method. He return a big array that contains all system informations
Warning
To date (23/02/23), this class has only been tested on Windows. Implementations on Linux and Mac are not yet fully completed and therefore have not been tested. Your pull requests are welcome
API
Credits
Contributing
Thank you for considering contributing to this package! Please create a pull request with your contributions with detailed explanation of the changes you are proposing.
License
This package is open-sourced software licensed under the MIT license.