gijsg / system-resources
A Laravel Nova card.
Installs: 73 746
Dependents: 0
Suggesters: 0
Security: 0
Stars: 29
Watchers: 2
Forks: 5
Open Issues: 1
Requires
- php: >=7.1.0
This package is auto-updated.
Last update: 2024-11-12 04:03:52 UTC
README
This Nova tool gives you a live overview of your RAM and CPU usage of your system.
Requirements
You must use either Linux, MacOS or Windows.
shell_exec
must not be disabled in your php.ini
. Make sure that disabled_functions
does not contain shell_exec
.
Installation
You can install the nova tool in to a Laravel app that uses Nova via composer:
composer require gijsg/system-resources
Next up, you must register the tool with Nova. This is typically done in the cards
method of the NovaServiceProvider
.
// in app/Providers/NovaServiceProvder.php // ... protected function cards() { return [ // ... new \GijsG\SystemResources\SystemResources('ram'), new \GijsG\SystemResources\SystemResources('cpu'), ]; }
You can specify the width of the cards using the nova card width notation: 1/2
, 1/4
, full
etc.
new \GijsG\SystemResources\SystemResources('ram', '1/3'),
The MIT License (MIT). Please see License File for more information.