PHPackages                             mimmi20/device-detector-factory - 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. mimmi20/device-detector-factory

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

mimmi20/device-detector-factory
===============================

Provides a factory for matomo/device-detector to use with Laminas

5.0.2(7mo ago)03871MITPHPPHP ~8.3.0 || ~8.4.0 || ~8.5.0CI passing

Since Aug 8Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/mimmi20/device-detector-factory)[ Packagist](https://packagist.org/packages/mimmi20/device-detector-factory)[ Docs](https://github.com/mimmi20/device-detector-factory)[ RSS](/packages/mimmi20-device-detector-factory/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (22)Versions (26)Used By (0)

device-detector-factory
=======================

[](#device-detector-factory)

[![Latest Stable Version](https://camo.githubusercontent.com/fcd6b6961908bc68f42a44460066aa5f7aad6127159b40ec86ac00afa6bb169d/68747470733a2f2f706f7365722e707567782e6f72672f6d696d6d6932302f6465766963652d6465746563746f722d666163746f72792f762f737461626c653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/mimmi20/device-detector-factory)[![Latest Unstable Version](https://camo.githubusercontent.com/2ab324f8c4826f01c1afcc1daf66ecb0615d45190c0360ccb4d74b590d0d28b7/68747470733a2f2f706f7365722e707567782e6f72672f6d696d6d6932302f6465766963652d6465746563746f722d666163746f72792f762f756e737461626c653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/mimmi20/device-detector-factory)[![License](https://camo.githubusercontent.com/ac4e5d908a1387e93c821461905772648355ab5ac017a95f8a42f48137b1b7ee/68747470733a2f2f706f7365722e707567782e6f72672f6d696d6d6932302f6465766963652d6465746563746f722d666163746f72792f6c6963656e73653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/mimmi20/device-detector-factory)

Code Status
-----------

[](#code-status)

[![codecov](https://camo.githubusercontent.com/f79eae42e4665cb101e5fe4ae81d06c7a82619c2f1b8599b6527200cc8008c54/68747470733a2f2f636f6465636f762e696f2f67682f6d696d6d6932302f6465766963652d6465746563746f722d666163746f72792f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/mimmi20/device-detector-factory)[![Coverage Status](https://camo.githubusercontent.com/e37b52b2a0a7783e240a7f9e2eb122be690ee37992638dfe879a2b99cc3f302b/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6d696d6d6932302f6465766963652d6465746563746f722d666163746f72792f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/mimmi20/device-detector-factory?branch=master)[![Average time to resolve an issue](https://camo.githubusercontent.com/ce6a211e913d1c9b617a98d6d969223ef059985643fd1361ed3fe9408c3620ed/68747470733a2f2f697369746d61696e7461696e65642e636f6d2f62616467652f7265736f6c7574696f6e2f6d696d6d6932302f6465766963652d6465746563746f722d666163746f72792e737667)](https://isitmaintained.com/project/mimmi20/device-detector-factory "Average time to resolve an issue")[![Percentage of issues still open](https://camo.githubusercontent.com/a86ad53cd7ec126506b6f8cb0d5571510c14fd31a4c9e0201d20be78a940b07a/68747470733a2f2f697369746d61696e7461696e65642e636f6d2f62616467652f6f70656e2f6d696d6d6932302f6465766963652d6465746563746f722d666163746f72792e737667)](https://isitmaintained.com/project/mimmi20/device-detector-factory "Percentage of issues still open")[![Mutation testing badge](https://camo.githubusercontent.com/3ac2a48e00db73fc2ff31403ca4157334bac52db4482a1c7fd8e5f4acd35cf78/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d2532466d696d6d6932302532466465766963652d6465746563746f722d666163746f72792532466d6173746572)](https://dashboard.stryker-mutator.io/reports/github.com/mimmi20/device-detector-factory/master)

Introduction
------------

[](#introduction)

This component provides a factory to create a matomo device detector with a config.

Requirements
------------

[](#requirements)

This library requires PHP 8.3+.

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

[](#installation)

Run

```
composer require mimmi20/device-detector-factory
```

Usage with Laminas and Mezzio
-----------------------------

[](#usage-with-laminas-and-mezzio)

You'll need to add configuration and register the services you'd like to use. There are number of ways to do that but the recommended way is to create a new config file `config/autoload/detector.config.php`

Configuration
-------------

[](#configuration)

config/autoload/detector.config.php

```
