Get OS resources from Laravel
php: >=8.0
laravel/framework: ^9.0
# Install the package
composer require stepanenko3/laravel-system-resources
use Stepanenko3\LaravelSystemResources\Facades\SystemResources;
$ram = SystemResources::ram();
$ramUsed = SystemResources::ramUsed();
$ramTotal = SystemResources::ramTotal();
$disk = SystemResources::disk();
$diskUsed = SystemResources::diskUsed();
$diskTotal = SystemResources::diskTotal();
$cpuName = SystemResources::cpuName();
$cpu = SystemResources::cpu();
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.
This package is open-sourced software licensed under the MIT license.