mobiledetect/mobiledetectlib
Lightweight PHP library to detect mobile devices and tablets using the User-Agent and HTTP headers. Simple API to check for phones, tablets, OS and browsers. Actively maintained (4.8.x) with older LTS/deprecated branches available.
Executives: "This open-source package solves a critical customer experience problem – serving the right interface to mobile users – with zero licensing cost and near-zero maintenance. It’s battle-tested across 10k+ projects, reducing our engineering effort by 80% compared to building our own solution. Every dollar saved on detection means more resources for revenue-generating features."
Engineering: "Integration is trivial: composer require mobiledetect/mobiledetectlib and bind it as a singleton in Laravel. It handles all edge cases (Cloudflare headers, client hints, new devices) out-of-the-box with PSR-16 cache support. We’ll avoid maintaining fragile regex patterns and gain 100% test coverage for detection logic. The current 4.8.x branch is fully compatible with PHP 8 and has active community support."
How can I help you explore Laravel packages today?