# Mobile Detect

> PHP class for detecting mobile devices and tablets

Source: https://talira.ai/catalog/mobile-detect-jfstmgd5
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / device detection](https://talira.ai/categories/libraries/device-detection), [languages / php](https://talira.ai/categories/languages/php)
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source (MIT). Its maintainer asks for donations.
- Free tier: yes[^1]
- Backed by: [Şerban Ghiţă](https://talira.ai/orgs/serban-ghita.md)

Mobile Detect is a lightweight PHP class that detects mobile devices, tablets included, from the User-Agent string combined with specific HTTP headers. It's installed with Composer as mobiledetect/mobiledetectlib. Version 4.8.x is the main line, updated first, and needs PHP 8.0 or newer; 3.74.x is a long-term support line for PHP 7.4, and 2.8.x is deprecated.

## Links

- Website: https://mobiledetect.net/
- GitHub: https://github.com/serbanghita/Mobile-Detect
- Docs: https://docs.mobiledetect.net/

## Problems it solves

- tell whether a visitor is on a phone or a tablet in my PHP app
- serve a different layout to mobile visitors from the server side in PHP
- detect tablets separately from phones from the user agent

## Features

- detects mobile phones and tablets
- uses the User-Agent string plus specific HTTP headers
- online demo at demo.mobiledetect.net

## Trust

Overall: 0.58 out of 1.
Signals: maintenance 0.66, adoption 0.81, momentum 0.54, community 0.84, backing 0.30, extensibility 0.00.

- last commit 26 days ago
- 9 commits in the last 90 days
- latest release 4.11.0 6 months ago
- 10.7k GitHub stars
- 123 contributors
- accepts sponsorship (Github, Custom)
- backed by Şerban Ghiţă

## Sources

[^1]: https://github.com/serbanghita/Mobile-Detect/blob/4.8.x/LICENSE (checked 29 Nov 2026)
