ipub / mobile-detect
This package is abandoned and no longer maintained.
No replacement package was suggested.
Extension for detecting mobile devices, managing mobile view types, redirect to mobile version for Nette Framework
v3.0.0
2019-09-26 13:35 UTC
Requires
- php: >=7.2.0
- jenssegers/agent: ~2.5
- latte/latte: ~2.5
- nette/application: ~3.0
- nette/di: ~3.0
- nette/http: ~3.0
- nette/utils: ~3.0
Requires (Dev)
- nette/bootstrap: ~3.0
- nette/mail: ~3.0
- nette/robot-loader: ~3.0
- nette/safe-stream: ~2.4
- nette/tester: ~2.3
- pds/skeleton: ~1.0
- tracy/tracy: ~2.6
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.