Releases: serbanghita/Mobile-Detect
Releases · serbanghita/Mobile-Detect
Empty userAgent string doesn't throw an Exception anymore, instead it returns false.
- [bug] No user-agent has been set #946
- added docker-compose.yml with images: setup (composer), runUnitTests, runPerfTests, runLinting, generateModel
Added back implicit $_SERVER scanning for setting the User-Agent string.
- added optional
$configto MobileDetect constructor. - added
autoInitOfHttpHeadersconfiguration which is by defaulttrue. This enabled the old behavior from3.xand2.xthat allows automatic detection of HTTP headers and User Agent from $_SERVER. - refactored internal CloudFront related methods and the way
setHttpHeaderswork. It no longer falls back on$_SERVER. The method still callssetUserAgentin caseHTTP_USER_AGENTand friends are present. - added
maximumUserAgentLengthto the$config, by default the limit is500.
4.8.01: MobileDetect version with PSR-16 Cache support.
- Support for PHP>=8.x
- PSR-16 cache support https://github.com/php-fig/simple-cache
- Run benchmark tests with https://github.com/phpbench/phpbench
- Split regex strings into array of strings. The main reason for this is future performance improvements, cross-platform compatibility and overall readability.
Other
- removed unused dependencies
- removed old examples
- rearranged /scripts/ folder
3.74.0 - official PHP7 support
- Same regexes as https://github.com/serbanghita/Mobile-Detect/releases/tag/2.8.41
- Removed all
@deprecatedmethods - Short arrays and some of the syntax was converted to >= PHP 7.4
- library exported as
Detection\MobileDetect