code: public static function getHostId()
      {
          if (self::isWindows()) {
              $uuid = explode("\r\n", trim(shell_exec('wmic csproduct get UUID')));
  
              return (\count($uuid) === 2 ? $uuid[1] : false);
          }
  
          $uuid = trim(shell_exec('hostid'));
  
          return $uuid === null ? false : $uuid;
      }
docs: Get unique system ID
  
  @return string System ID
  @static