Last active
February 24, 2016 09:43
-
-
Save woganmay/815e9f74d134b7327b0d to your computer and use it in GitHub Desktop.
Everything in linfo v3.0.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// http://wogan.me/2016/02/21/get-system-information-in-laravel-5-1/ | |
$linfo = new \Linfo\Linfo; | |
$parser = $linfo->getParser(); | |
$everything = [ | |
'os' => $parser->getOS(), | |
'cpu' => $parser->getCPU(), | |
'CPUArchitecture' => $parser->getCPUArchitecture(), | |
'CPUUsage' => $parser->getCPUUsage(), | |
'Kernel' => $parser->getKernel(), | |
'Distro' => $parser->getDistro(), | |
'AccessedIP' => $parser->getAccessedIP(), | |
'Ram' => $parser->getRam(), | |
'HD' => $parser->getHD(), | |
//'Mounts' => $parser->getMounts(), // ErrorException in Linux.php line 649 | |
'Load' => $parser->getLoad(), | |
'HostName' => $parser->getHostName(), | |
'UpTime' => $parser->getUpTime(), | |
'Model' => $parser->getModel(), | |
'Net' => $parser->getNet(), | |
//'Devs' => $parser->getDevs(), // ErrorException in CallExt.php line 67 | |
//'Temps' => $parser->getTemps(), // ErrorException in Linux.php line 435: | |
'Battery' => $parser->getBattery(), | |
//'RAID' => $parser->getRAID(), // Will probably work if the server has a RAID setup | |
'Wifi' => $parser->getWifi(), | |
'SoundCards' => $parser->getSoundCards(), | |
'ProcessStats' => $parser->getProcessStats(), | |
'Services' => $parser->getServices(), | |
'numLoggedIn' => $parser->getnumLoggedIn(), | |
'Virtualization' => $parser->getVirtualization(), | |
'PhpVersion' => $parser->getPhpVersion(), | |
'WebService' => $parser->getWebService() | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment