PHPackages                             ipub/mobile-detect - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. ipub/mobile-detect

AbandonedArchivedLibrary[Framework](/categories/framework)

ipub/mobile-detect
==================

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

v3.0.0(6y ago)1960.0k—3.3%6[1 issues](https://github.com/ipublikuj-archive/mobile-detect/issues)2GPL-2.0PHPPHP &gt;=7.2.0

Since Jun 11Pushed 6y ago3 watchersCompare

[ Source](https://github.com/ipublikuj-archive/mobile-detect)[ Packagist](https://packagist.org/packages/ipub/mobile-detect)[ Docs](https://github.com/iPublikuj/mobile-detect)[ RSS](/packages/ipub-mobile-detect/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (13)Versions (13)Used By (2)

MobileDetect
============

[](#mobiledetect)

[![Build Status](https://camo.githubusercontent.com/8a92155d772d18a74060212660564a001423c3e31ec31255e6cade96164a0ee7/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f695075626c696b756a2f6d6f62696c652d6465746563742e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/iPublikuj/mobile-detect)[![Scrutinizer Code Coverage](https://camo.githubusercontent.com/0ed11468d71d1112caee45bf54c98c8ef31858f785853636398292eeb9d127d6/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f695075626c696b756a2f6d6f62696c652d6465746563742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/iPublikuj/mobile-detect/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/f72cbf8bf87444016417f06b957da7bee9fb69a489ea81871f0e31e7f6aba8e0/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f695075626c696b756a2f6d6f62696c652d6465746563742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/iPublikuj/mobile-detect/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/39811990b6d7a5e967d484133f672a96e2525d28656d2f3efc1e94845997a535/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f697075622f6d6f62696c652d6465746563742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ipub/mobile-detect)[![Composer Downloads](https://camo.githubusercontent.com/6188c64cc70be55fcf9518e91663924f12fbc5c13e3fac68b3a18e654df7f6c3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f697075622f6d6f62696c652d6465746563742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ipub/mobile-detect)[![License](https://camo.githubusercontent.com/4b074ccfc121f702584eee5e92e8a0361c2d02774541779a64f00f7ad20f4a61/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f697075622f6d6f62696c652d6465746563742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ipub/mobile-detect)

Extension for detecting mobile devices, managing mobile view types, redirect to mobile version for [Nette Framework](http://nette.org/)

Introduction
------------

[](#introduction)

This extension use [Mobile\_Detect](https://github.com/serbanghita/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
------------

[](#installation)

The best way to install ipub/mobile-detect is using [Composer](http://getcomposer.org/):

```
$ 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.

```
