Skip to content

Releases: serbanghita/Mobile-Detect

4.11.0

Choose a tag to compare

@github-actions github-actions released this 24 May 12:33
4.11.0
ab39168

What's Changed

  • perf(bench): overhaul phpbench suite + advisory CI + release hygiene by @serbanghita in #1015

Full Changelog: 4.10.0...4.11.0

4.10.0

Choose a tag to compare

@github-actions github-actions released this 23 Apr 13:06
4.10.0
1473bd9

What's Changed

Full Changelog: 4.9.0...4.10.0

4.9.0

Choose a tag to compare

@serbanghita serbanghita released this 23 Apr 12:45
4.9.0
992cc85

Minor release.

Added

  • Lenovo: broad Lenovo TB prefix match for modern tablets (#1013).
  • Samsung: 2025 tablet models (Tab S11, S10 Lite, A11).
  • MobileDetect::VERSION_TYPE_STRING and VERSION_TYPE_FLOAT constants promoted to public (#991).

Changed

  • Consistent late static binding for subclass extensibility (#1012).
  • Dropped PHP 8.0 and 8.1 from the CI matrix.

Fixed

  • PHP 8.4 compatibility: explicit type hints where the engine now requires them.
  • Cache::getTimestamp() method name typo (was getTimeStamp) (#1007).
  • Version regex now accepts multi-char pre-release suffixes.
  • Pinned composer dependencies to exact versions.
  • GitHub Actions workflow actions updated to their latest versions.

Full changelog: 4.8.10...4.9.0

Empty userAgent string doesn't throw an Exception anymore, instead it returns false.

Choose a tag to compare

@serbanghita serbanghita released this 28 Oct 16:12
4.8.04
b73a5bd
  • [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.

Choose a tag to compare

@serbanghita serbanghita released this 15 Oct 18:38
4.8.03
253bedd
  • 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.

4.8.01: MobileDetect version with PSR-16 Cache support.

Choose a tag to compare

@serbanghita serbanghita released this 06 Oct 10:14
4.8.01
dd87abc

Other

  • removed unused dependencies
  • removed old examples
  • rearranged /scripts/ folder

3.74.0 - official PHP7 support

Choose a tag to compare

@serbanghita serbanghita released this 04 Dec 15:42