PHP code example of gijsg / system-resources
1. Go to this page and download the library: Download gijsg/system-resources library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
gijsg / system-resources example snippets
// in app/Providers/NovaServiceProvder.php
// ...
protected function cards()
{
return [
// ...
new \GijsG\SystemResources\SystemResources('ram'),
new \GijsG\SystemResources\SystemResources('cpu'),
];
}
new \GijsG\SystemResources\SystemResources('ram', '1/3'),