App and library for easily parsing system information, like network/cpu/memory/usb/pci/sound cards/filesystems/raid array/ipmi/etc.

5.3.1 2022-03-26 16:19 UTC

This package is auto-updated.

Last update: 2022-08-14 07:21:38 UTC


License Latest Stable Version Continuous Integration

Ginfo is a:

  • Extensible, easy (composer) to use PHP Library to get extensive system stats programmatically from your PHP app

Fork changes:

  • drop ui
  • drop internationalization
  • drop bsd* support (sorry, I will not be able to support)
  • drop dhcp3 support
  • drop dnsmasq support
  • drop php libvirt support
  • drop lxd support
  • no need COM extension on Windows, but need powershell
  • support Windows >= 10
  • adapt the code to modern standards
  • minimal php version 7.3
  • add selinux status info
  • add php info (basic, opcache, apcu)


composer require gemorroj/ginfo


$ginfo = new \Ginfo\Ginfo();
$info = $ginfo->getInfo();


Runs on

  • Linux
  • Windows >= 10

Information reported

  • CPU type/speed; Architecture
  • Mount point usage
  • Hard/optical/flash drives
  • Hardware devices (PCI) (linux: need pciutils)
  • USB devices (linux: need usbutils)
  • Network devices and stats
  • Uptime
  • Memory usage (physical and swap, linux: need free)
  • Temperatures/voltages/fan speeds (linux: need hddtemp as daemon, mbmon as daemon, sensors (part of lm-sensors), hwmon, acpi themal zone, nvidia-smi, ipmitool)
  • RAID arrays (linux: need mdadm)
  • Motherboard (linux: need dimedecode)
  • Processes
  • Systemd services (linux: need systemctl)
  • logged users (linux: need who)
  • UPS status (linux: need apcaccess)
  • Printer status (linux: need lpstat)
  • Samba status (linux: need smbstatus)
  • Selinux status (linux: need sestatus)
  • PHP (basic info, opcache, apcu)

System requirements:

  • PHP >= 7.3
  • pcre extension
  • proc_open


  • You need to have powershell
  • Allow execute ps1 scripts Set-ExecutionPolicy RemoteSigned –Force


  • /proc and /sys mounted and readable by PHP
  • Tested with the 2.6.x/3.x/4.x kernels