定制 ipub/mobile-detect 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

ipub/mobile-detect

最新稳定版本:v3.0.0

Composer 安装命令:

composer require ipub/mobile-detect

包简介

Extension for detecting mobile devices, managing mobile view types, redirect to mobile version for Nette Framework

README 文档

README

Build Status Scrutinizer Code Coverage Scrutinizer Code Quality Latest Stable Version Composer Downloads License

Extension for detecting mobile devices, managing mobile view types, redirect to mobile version for Nette Framework

Introduction

This extension use Mobile_Detect class and provides the following features:

  • Detect the various mobile devices by name, OS, browser User-Agent
  • Manages site views for the variuos mobile devices (mobile, phone, tablet, full)
  • Redirects to mobile and tablet sites

Installation

The best way to install ipub/mobile-detect is using Composer:

$ composer require ipub/mobile-detect

After that you have to register extension in config.neon.

extensions: mobileDetect: IPub\MobileDetect\DI\MobileDetectExtension 

Package contains trait, which you will have to use in class, where you want to use mobile detector.

<?php  class BasePresenter extends Nette\Application\UI\Presenter {  use IPub\MobileDetect\TMobileDetect;    // Rest of code... }

Documentation

Learn how to get info about visitor device in documentation.

Homepage https://www.ipublikuj.eu and repository http://github.com/iPublikuj/mobile-detect.

统计信息

  • 总下载量: 58.78k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 19
  • 点击次数: 3
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 19
  • Watchers: 5
  • Forks: 7
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固