gijsg/system-resources

A Laravel Nova card.

1.0.5 2020-05-18 16:23 UTC

This package is auto-updated.

Last update: 2024-04-12 02:43:12 UTC


README

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.