GijsGoudzwaard / nova-system-resources

Display the system usage in Laravel-Nova
MIT License
29 stars 5 forks source link
laravel laravel-nova nova php

A Laravel Nova tool to show system resources

Total Downloads Latest Stable Version License

This Nova tool gives you a live overview of your RAM and CPU usage of your system.

screenshot of the backup tool

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.