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
$config
to MobileDetect constructor. - added
autoInitOfHttpHeaders
configuration which is by defaulttrue
. This enabled the old behavior from3.x
and2.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 callssetUserAgent
in caseHTTP_USER_AGENT
and friends are present. - added
maximumUserAgentLength
to 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
@deprecated
methods - Short arrays and some of the syntax was converted to >= PHP 7.4
- library exported as
Detection\MobileDetect