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
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
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0
- 更新时间: 2026-01-04