Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ipublikuj-archive/mobile-detect
Extension for detecting mobile devices, managing mobile view types, redirect to mobile version for Nette Framework (2.4+)
https://github.com/ipublikuj-archive/mobile-detect
device-detection ipub ipublikuj mobile mobile-detect nette nette-extension nette-framework os-detection php php7 php71 php72
Last synced: about 21 hours ago
JSON representation
Extension for detecting mobile devices, managing mobile view types, redirect to mobile version for Nette Framework (2.4+)
- Host: GitHub
- URL: https://github.com/ipublikuj-archive/mobile-detect
- Owner: ipublikuj-archive
- License: other
- Archived: true
- Created: 2014-04-22T21:10:35.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2019-09-26T13:36:37.000Z (over 5 years ago)
- Last Synced: 2025-01-15T13:46:05.578Z (6 days ago)
- Topics: device-detection, ipub, ipublikuj, mobile, mobile-detect, nette, nette-extension, nette-framework, os-detection, php, php7, php71, php72
- Language: PHP
- Homepage:
- Size: 103 KB
- Stars: 19
- Watchers: 5
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# MobileDetect
[![Build Status](https://img.shields.io/travis/iPublikuj/mobile-detect.svg?style=flat-square)](https://travis-ci.org/iPublikuj/mobile-detect)
[![Scrutinizer Code Coverage](https://img.shields.io/scrutinizer/coverage/g/iPublikuj/mobile-detect.svg?style=flat-square)](https://scrutinizer-ci.com/g/iPublikuj/mobile-detect/?branch=master)
[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/iPublikuj/mobile-detect.svg?style=flat-square)](https://scrutinizer-ci.com/g/iPublikuj/mobile-detect/?branch=master)
[![Latest Stable Version](https://img.shields.io/packagist/v/ipub/mobile-detect.svg?style=flat-square)](https://packagist.org/packages/ipub/mobile-detect)
[![Composer Downloads](https://img.shields.io/packagist/dt/ipub/mobile-detect.svg?style=flat-square)](https://packagist.org/packages/ipub/mobile-detect)
[![License](https://img.shields.io/packagist/l/ipub/mobile-detect.svg?style=flat-square)](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
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
The best way to install ipub/mobile-detect is using [Composer](http://getcomposer.org/):
```sh
$ composer require ipub/mobile-detect
```After that you have to register extension in config.neon.
```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