Download Latest Version 4.10.0 source code.tar.gz (60.8 kB)
Email in envelope

Get an email when there's a new version of Mobile Detect

Home / 4.8.03
Name Modified Size InfoDownloads / Week
Parent folder
Added back implicit _SERVER scanning for setting the User-Agent string. source code.tar.gz 2023-10-15 54.5 kB
Added back implicit _SERVER scanning for setting the User-Agent string. source code.zip 2023-10-15 58.6 kB
README.md 2023-10-15 555 Bytes
Totals: 3 Items   113.6 kB 0
  • added optional $config to MobileDetect constructor.
  • added autoInitOfHttpHeaders configuration which is by default true. This enabled the old behavior from 3.x and 2.x that allows automatic detection of HTTP headers and User Agent from $_SERVER.
  • refactored internal CloudFront related methods and the way setHttpHeaders work. It no longer falls back on $_SERVER. The method still calls setUserAgent in case HTTP_USER_AGENT and friends are present.
  • added maximumUserAgentLength to the $config, by default the limit is 500.
Source: README.md, updated 2023-10-15