mimmi20 / device-detector-factory
This package is abandoned and no longer maintained.
No replacement package was suggested.
Provides a factory for matomo/device-detector to use with Laminas
Package info
github.com/mimmi20/device-detector-factory
pkg:composer/mimmi20/device-detector-factory
5.0.5
2026-08-15 07:33 UTC
Requires
- php: ~8.3.0 || ~8.4.0 || ~8.5.0 || ~8.6.0
- laminas/laminas-http: ^2.23.0
- laminas/laminas-servicemanager: ^4.5.1
- matomo/device-detector: ^6.5.1
- psr/cache: ^3.0.0
- psr/simple-cache: ^1.0.0 || ^2.0.0 || ^3.0.0
Requires (Dev)
- ext-ctype: *
- ext-dom: *
- ext-simplexml: *
- ext-tokenizer: *
- ext-xml: *
- ext-xmlwriter: *
- ergebnis/composer-normalize: ^2.52.0
- infection/infection: ^0.34.2
- jbelien/phpstan-sarif-formatter: ^1.2.0
- laminas/laminas-modulemanager: ^2.19.0
- mimmi20/coding-standard: ^6.2.5
- nikic/php-parser: ^5.8.0
- phpstan/extension-installer: ^1.4.3
- phpstan/phpstan: ^2.2.8
- phpstan/phpstan-deprecation-rules: ^2.0.5
- phpunit/phpunit: ^12.5.8
- psr/container: ^1.1.2 || ^2.0.2
- rector/rector: ^2.6.1
- rector/type-perfect: ^2.2.0
- shipmonk/composer-dependency-analyser: ^1.8.4
- symfony/process: ^7.3.4
- symplify/phpstan-rules: ^14.10.0
- tomasvotruba/cognitive-complexity: ^1.2.0
- tomasvotruba/type-coverage: ^2.2.1
- tomasvotruba/unused-public: ^2.2.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Code Status
Introduction
This component provides a factory to create a matomo device detector with a config.
Requirements
This library requires PHP 8.3+.
Installation
Run
composer require mimmi20/device-detector-factory
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
config/autoload/detector.config.php
<?php return [ 'device-detector' => [ 'discard-bot-information' => true, // Optional: defaults to false 'skip-bot-detection' => true, // Optional: defaults to false 'cache' => 'data-cache', // Optional, may be a string or an instance of \Laminas\Cache\Storage\StorageInterface ], ];
License
This package is licensed using the MIT License.
Please have a look at LICENSE.md.