serbanghita/mobile-detect

Mobile_Detect is a lightweight PHP class for detecting mobile devices (including tablets). It uses the User-Agent string combined with specific HTTP headers...

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 24 minutes ago
Added to GitGenius on September 5th, 2026
Created on August 31st, 2012
Open Issues & Pull Requests: 18 (+0)
GitHub issues: Enabled
Number of forks: 2,606
Total Stargazers: 10,680 (+0)
Total Subscribers: 568 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 0.0 hours
Mean response time: 17.8 days
90th percentile: 55.8 days
Tracked items: 35

How this project is maintained

Around half of the issues opened in the past year never receive a reply. Only 11% of issues opened in the past year have been closed. Three people close 87% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 10
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 667 days
Stale 30+ days: 10
Stale 90+ days: 9

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • type: bug (18)
  • feature (4)
  • feature: Cache (4)
  • User-Agent client hints (2)
  • User-Agent reduction initiative (2)
  • discussion (2)
  • deprecated (1)
  • type: question (1)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

Mobile Detect is a lightweight PHP class for detecting mobile devices, including tablets, by analyzing the User-Agent string combined with specific HTTP headers.

The tool solves the problem of identifying whether a request comes from a mobile environment, which is essential for applications that need to serve different content or redirect users based on device type. It works by examining the User-Agent header and other HTTP signals to classify incoming requests as mobile, tablet, or desktop devices.

Mobile Detect suits PHP applications that need device detection without heavy dependencies. It is particularly useful for projects requiring mobile redirects or conditional content serving. The tool maintains multiple version branches to support different PHP versions, with a current recommended version for modern PHP environments and a long-term support version for applications on older PHP releases.

The project maintains automated test suites across its active version branches. Development follows a rolling branch strategy where each major version line has its own branch with tagged releases. The tool includes comprehensive documentation hosted externally and provides a live demo for testing detection accuracy across real devices.