PHPackages                             panychek/zf-device-detector - 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. panychek/zf-device-detector

ActiveLibrary

panychek/zf-device-detector
===========================

ZF3 module that utilizes the DeviceDetector library

0.1.1(6y ago)011MITPHPPHP &gt;=7.0

Since Jul 14Pushed 6y agoCompare

[ Source](https://github.com/panychek/zf-device-detector)[ Packagist](https://packagist.org/packages/panychek/zf-device-detector)[ RSS](/packages/panychek-zf-device-detector/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

ZfDeviceDetector
================

[](#zfdevicedetector)

ZF3 module that utilizes the [DeviceDetector](https://github.com/matomo-org/device-detector) library to provide device detection support for your MVC application.

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

[](#installation)

Install the module via [Composer](http://getcomposer.org/):

```
composer require panychek/zf-device-detector
```

Then add the module name to your project's `config/application.config.php` under the `modules` key:

```
return [
    'modules' => [
        // ...
        'ZfDeviceDetector',
    ],
    // ...
];
```

Usage
-----

[](#usage)

This module registers a new service in your application's service manager, which will be available under the `DeviceDetector::class` key. This service provides an actual `DeviceDetector` instance, initialized with the User Agent fetched from the built-in `Request` service.

The module also provides a view helper and a controller plugin that proxy all the calls to that instance.

For more information on the supported features, please refer to the [library documentation](https://github.com/matomo-org/device-detector).

### Service

[](#service)

Within your *factories* use:

```
$deviceDetector = $container->get(DeviceDetector::class);
$client = $deviceDetector->getClient();
```

### View helper

[](#view-helper)

Within your *view templates* use:

```
$client = $this->deviceDetector()->getClient();
```

### Controller plugin

[](#controller-plugin)

Within your *controllers* use:

```
$client = $this->deviceDetector()->getClient();
```

###  Health Score

21

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~12 days

Total

2

Last Release

2430d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9343bb4b2ca7f5913e9806cae76e5d0ecd89b6c252dd7f82b96a9c20ec4213a6?d=identicon)[panychek](/maintainers/panychek)

---

Top Contributors

[![panychek](https://avatars.githubusercontent.com/u/29440141?v=4)](https://github.com/panychek "panychek (2 commits)")

---

Tags

zfZend Frameworkdevice detector

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/panychek-zf-device-detector/health.svg)

```
[![Health](https://phpackages.com/badges/panychek-zf-device-detector/health.svg)](https://phpackages.com/packages/panychek-zf-device-detector)
```

###  Alternatives

[slm/locale

Automatic detection of locales for Laminas

68258.5k2](/packages/slm-locale)[facile-it/sentry-module

This module allows integration of Sentry Client into laminas and mezzio

21363.5k](/packages/facile-it-sentry-module)[zfc-datagrid/zfc-datagrid

Laminas Module that provides a datagrid for different datasources and output formats

1222.7k](/packages/zfc-datagrid-zfc-datagrid)[libra/libra-cms

ZF2 based CMS that allows easily create your own web-site with necessary tools like article menagment

231.2k](/packages/libra-libra-cms)

PHPackages © 2026

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