Browser Detection

Downloads
2.5.2
2016
Stable

This class implements browser and operating system recognition. It can distinguish common browsers (not the old ones like Netscape) and delivers information about browser and the operating system parsed from the user agent string.

Features

Detected Browsers

  • Google Chrome
  • Mozilla Firefox
  • Internet Explorer
  • Edge
  • Opera
  • Safari & Mobile Safari

Detected Operating Systems

  • Windows 10
  • Windows 8.1
  • Windows 8
  • Windows 7
  • Windows Vista
  • Windows XP
  • Mac OS X
  • Linux (various distributions)
  • iOS
  • Android
  • Windows Phone

We can also tell x86 from x64 operating systems. For both browser and operating system, there is a name and a friendly name. This way you can use the name for internal purposes and data lookup and the friendly name for display.

Please note that Windows and Internet Explorer versions are represented more distinctly, while other browser and operating system versions are aggregated into one. This is because the version of Windows & Internet Explorer is far more relevant than the version of, i.e., Chrome and iOS, because they are usually up-to-date or do not differ too much.

Output

This is the output generated by your browser:

Property Value
UserAgent CCBot/2.0 (http://commoncrawl.org/faq/)
Name
FriendlyName Unknown
FriendlyNameExtended Unknown
Version
MajorVersion
OperatingSystem
OperatingSystemArchitecture x86
OperatingSystemFriendlyName Unknown