PHPackages                             shfarzam/device-detection - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. shfarzam/device-detection

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

shfarzam/device-detection
=========================

A PHP library for device detection including mobile, bot, and tablet/PC detection methods.

10PHP

Since Jan 4Pushed 2y ago1 watchersCompare

[ Source](https://github.com/shfarzam/device-detection-package)[ Packagist](https://packagist.org/packages/shfarzam/device-detection)[ RSS](/packages/shfarzam-device-detection/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

shfarzam/device-detection
=========================

[](#shfarzamdevice-detection)

The `shfarzam/device-detection` library provides a PHP-based solution for detecting various types of devices, including mobiles, tablets, desktops, and bots based on the User-Agent string. This library aims to simplify device detection for web applications.

Installation
------------

[](#installation)

You can install this package via Composer. Run the following command in your project directory:

```
composer require shfarzam/device-detection
```

Usage
-----

[](#usage)

License
-------

[](#license)

This library is open-sourced software licensed under the [GNU General Public License v3.0](LICENSE).

Contributing
------------

[](#contributing)

Contributions are welcome! If you encounter bugs or have suggestions, please open an issue or submit a pull request.

---

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity21

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/1459f480984add8375b149c6af8a387dd0fd1699e1183befc96bcb111f461624?d=identicon)[shfarzam](/maintainers/shfarzam)

---

Top Contributors

[![shfarzam](https://avatars.githubusercontent.com/u/30744674?v=4)](https://github.com/shfarzam "shfarzam (14 commits)")

### Embed Badge

![Health badge](/badges/shfarzam-device-detection/health.svg)

```
[![Health](https://phpackages.com/badges/shfarzam-device-detection/health.svg)](https://phpackages.com/packages/shfarzam-device-detection)
```

###  Alternatives

[pharaonic/php-dot-array

Access array data quickly/easily using dot-notation and asterisk.

1011.6k3](/packages/pharaonic-php-dot-array)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
