mimmi20/device-detector-factory
最新稳定版本:5.0.3
Composer 安装命令:
composer require mimmi20/device-detector-factory
包简介
Provides a factory for matomo/device-detector to use with Laminas
README 文档
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.
统计信息
- 总下载量: 387
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-01-10