os/Windows.php
public static function getCpuCores()
		{
			$wmi    = Windows::getInstance();
			$object = $wmi->ExecQuery("SELECT NumberOfLogicalProcessors FROM Win32_Processor");

			$cores = 0;
			foreach ($object as $obj) {
				$cores = $obj->NumberOfLogicalProcessors;
			}

			return $cores;
		}
public static function getCpuCores()
		{
			$wmi    = Windows::getInstance();
			$object = $wmi->ExecQuery("SELECT NumberOfLogicalProcessors FROM Win32_Processor");

			$cores = 0;
			foreach ($object as $obj) {
				$cores = $obj->NumberOfLogicalProcessors;
			}

			return $cores;
		}
Gets total number of cores

@return integer