NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist · #342 most downloaded on Packagist
Mobile_Detect is a lightweight PHP class for detecting mobile devices. It uses the User-Agent string combined with specific HTTP headers to detect the mobile environment.
Last release 4 months ago
24 May 2026
Release timing varies
gaps range from 9 days to 13 months
Rarely documented
notes for 14 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
14 years old
93 releases · first in 2012
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
sha1` is now the default fn for encoding cache keys.
sha1` is now the default fn for encoding cache keys.
sha1 is now the default fn for encoding cache keys. Using base64 was causing problems in Laravel.[x] fix for missing psr/cache prod dependency
…Interface ( #966 ) PHP 8.4 - implicit nulls are deprecated
Added configuration cacheKeyFn which allows for using a custom cache key creation fn.
Use Client Hints Sec-CH-UA-Mobile header to detect mobile (#962)
added Huawei (phone, OS - HarmonyOS, browser) detection (#952)
Bugfix: Allow Injection of Any PSR Cache Interface (#966)
PHP 8.4 - implicit nulls are deprecated (#960)
Nothing published for this version
Nothing published for this version
Nothing published for this version
[x] added optional $config to MobileDetect constructor.
$config to MobileDetect constructor.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.setHttpHeaders work. It no longer falls back on $_SERVER. The method still calls setUserAgent in case HTTP_USER_AGENT and friends are present.maximumUserAgentLength to the $config, by default the limit is 500.[x] Samsung Galaxy Tab S6 Lite #919
[x] Constructor accepts CacheFactory class where you can inject your own PSR-6 Cache interfaces.
CacheFactory class where you can inject your own PSR-6 Cache interfaces.setUserAgent("...") or setUserAgentHeaders([...]) otherwise an exception is being thrown.scripts/ folder no longer included in the git tag release archive.Your coding agent can read these notes before it upgrades. Set up the MCP server →