PHP code example of patelworld / systeminfo
1. Go to this page and download the library: Download patelworld/systeminfo 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/ */
patelworld / systeminfo example snippets
use PatelWorld\SystemInfo\DiskDrive;
echo DiskDrive::diskCount(); //2
print_r(DiskDrive::getSerialNumber()); // Array
Array
(
[0] => KINGSTON XAB400S374580X
[1] => SW1000MP010-2WPX305
)
use PatelWorld\SystemInfo\Battery;
print_r(Battery::details());
print_r(Battery::getSize());
print_r(Battery::getPartNumber());
print_r(Battery::getAttributes(["Name","Description"]));
use PatelWorld\SystemInfo\Board;
print_r(Board::details());
print_r(Board::getModel());
print_r(Board::getSerialNumber());
print_r(Board::getManufacturer());
print_r(Board::getAttributes(["Name","Description"]));
use PatelWorld\SystemInfo\Cpu;
print_r(Cpu::details());
print_r(Cpu::getModel());
print_r(Cpu::getManufacturer());
print_r(Cpu::getAttributes(["Name","Description"]));
use PatelWorld\SystemInfo\DiskDrive;
print_r(DiskDrive::diskCount());
print_r(DiskDrive::details());
print_r(DiskDrive::getModel());
print_r(DiskDrive::getSerialNumber());
print_r(DiskDrive::getSize());
print_r(DiskDrive::getPartitionsCount());
print_r(DiskDrive::getManufacturer());
print_r(DiskDrive::getDiskDetails());
print_r(DiskDrive::getWindowsDiskDetails());
print_r(DiskDrive::getAttributes(["Name","Description"]));
use PatelWorld\SystemInfo\GraophicsCard;
print_r(GraophicsCard::details());
print_r(GraophicsCard::getModel());
print_r(GraophicsCard::getManufacturer());
print_r(GraophicsCard::getAttributes(["Name","Description"]));
use PatelWorld\SystemInfo\LocicalDrive;
print_r(LocicalDrive::details());
print_r(LocicalDrive::getAttributes(["Name","Description"]));
use PatelWorld\SystemInfo\MemoryChip;
print_r(MemoryChip::details());
print_r(MemoryChip::getSize());
print_r(MemoryChip::getPartNumber());
print_r(MemoryChip::getAttributes(["Name","Description"]));
use PatelWorld\SystemInfo\NetworkAdapter;
print_r(NetworkAdapter::details());
print_r(NetworkAdapter::getAttributes(["Name","Description"]));
use PatelWorld\SystemInfo\Os;
print_r(Os::details());
print_r(Os::getBuildNumber());
print_r(Os::getManufacturer());
print_r(Os::getSerialNumber());
print_r(Os::getSystemDrive());
print_r(Os::getAttributes(["Name","Description"]));
use PatelWorld\SystemInfo\SoundDevice;
print_r(SoundDevice::details());
print_r(SoundDevice::getProductName());
print_r(SoundDevice::getManufacturer());
print_r(SoundDevice::getStatus());
print_r(SoundDevice::getAttributes(["Name","Description"]));
use PatelWorld\SystemInfo\Usb;
print_r(Usb::details());
print_r(Usb::getName());
print_r(Usb::getManufacturer());
print_r(Usb::getAttributes(["Name","Description"]));