stepanenko3 / laravel-system-resources
Get OS resources from Laravel
Installs: 92 369
Dependents: 1
Suggesters: 0
Security: 0
Stars: 6
Watchers: 2
Forks: 3
Open Issues: 1
Requires
- php: ^8.0
- laravel/framework: ^9.0|^10.0|^11.0
Requires (Dev)
- phpstan/phpstan: ^1.10
- tightenco/duster: ^2.7
This package is auto-updated.
Last update: 2024-12-17 00:51:48 UTC
README
Description
Get OS resources from Laravel
Requirements
php: >=8.0
laravel/framework: ^9.0
Installation
# Install the package
composer require stepanenko3/laravel-system-resources
Usage
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();
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.