richbarrett / health-check
Very lightweight tool for checking some server level health data (designed to work with Ubuntu)
Installs: 19
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/richbarrett/health-check
Requires
- php: >=5.6.0
This package is not auto-updated.
Last update: 2025-10-12 08:46:13 UTC
README
This is a very lightweight tool for checking some server health metrics (designed to work with Ubuntu).
Methods available
- diskSpacePercentageUsed
- diskSpaceFree
- diskSpaceTotal
- diskSpaceUsed
- memoryInfo
- totalMemory
- memoryPhysicallyFree
- memoryPhysicallyUsed
- memoryUsedPercentage
- loadAverages
Installation
You can install this with composer:
composer require richbarrett/HealthCheck
Usage
include_once('vendor/autoload.php'); $hc = new \richbarrett\HealthCheck\HealthCheck; echo 'Disk currently '. $hc->diskSpacePercentageUsed().'% full ('.$hc->diskSpaceFree().'gb available)';