Awesome Open Source
Awesome Open Source


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


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


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.

	mobileDetect: IPub\MobileDetect\DI\MobileDetectExtension

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


class BasePresenter extends Nette\Application\UI\Presenter
    use IPub\MobileDetect\TMobileDetect;
    // Rest of code...


Learn how to get info about visitor device in documentation.

Homepage and repository

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
php (16,527
mobile (485
php7 (259
nette (39
nette-framework (35
php71 (21
php72 (18