mimmi20/device-detector-factory 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

Latest Stable Version Latest Unstable Version License

Code Status

codecov Coverage Status Average time to resolve an issue Percentage of issues still open Mutation testing badge

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
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-01-10