{"id":15167198,"url":"https://github.com/ipublikuj-archive/mobile-detect","last_synced_at":"2025-10-01T00:31:10.845Z","repository":{"id":16297645,"uuid":"19046335","full_name":"ipublikuj-archive/mobile-detect","owner":"ipublikuj-archive","description":"Extension for detecting mobile devices, managing mobile view types, redirect to mobile version for Nette Framework (2.4+)","archived":true,"fork":false,"pushed_at":"2019-09-26T13:36:37.000Z","size":105,"stargazers_count":19,"open_issues_count":1,"forks_count":7,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-15T13:46:05.578Z","etag":null,"topics":["device-detection","ipub","ipublikuj","mobile","mobile-detect","nette","nette-extension","nette-framework","os-detection","php","php7","php71","php72"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ipublikuj-archive.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-22T21:10:35.000Z","updated_at":"2023-12-26T18:05:07.000Z","dependencies_parsed_at":"2022-08-21T10:40:51.927Z","dependency_job_id":null,"html_url":"https://github.com/ipublikuj-archive/mobile-detect","commit_stats":null,"previous_names":["ipublikuj/mobile-detect"],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipublikuj-archive%2Fmobile-detect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipublikuj-archive%2Fmobile-detect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipublikuj-archive%2Fmobile-detect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipublikuj-archive%2Fmobile-detect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ipublikuj-archive","download_url":"https://codeload.github.com/ipublikuj-archive/mobile-detect/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234796857,"owners_count":18888157,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["device-detection","ipub","ipublikuj","mobile","mobile-detect","nette","nette-extension","nette-framework","os-detection","php","php7","php71","php72"],"created_at":"2024-09-27T05:41:32.748Z","updated_at":"2025-10-01T00:31:05.555Z","avatar_url":"https://github.com/ipublikuj-archive.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MobileDetect\n\n[![Build Status](https://img.shields.io/travis/iPublikuj/mobile-detect.svg?style=flat-square)](https://travis-ci.org/iPublikuj/mobile-detect)\n[![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)\n[![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)\n[![Latest Stable Version](https://img.shields.io/packagist/v/ipub/mobile-detect.svg?style=flat-square)](https://packagist.org/packages/ipub/mobile-detect)\n[![Composer Downloads](https://img.shields.io/packagist/dt/ipub/mobile-detect.svg?style=flat-square)](https://packagist.org/packages/ipub/mobile-detect)\n[![License](https://img.shields.io/packagist/l/ipub/mobile-detect.svg?style=flat-square)](https://packagist.org/packages/ipub/mobile-detect)\n\nExtension for detecting mobile devices, managing mobile view types, redirect to mobile version for [Nette Framework](http://nette.org/)\n\n## Introduction\n\nThis extension use [Mobile_Detect](https://github.com/serbanghita/Mobile-Detect) class and provides the following features:\n\n* Detect the various mobile devices by name, OS, browser User-Agent\n* Manages site views for the variuos mobile devices (`mobile`, `phone`, `tablet`, `full`)\n* Redirects to mobile and tablet sites\n\n## Installation\n\nThe best way to install ipub/mobile-detect is using  [Composer](http://getcomposer.org/):\n\n```sh\n$ composer require ipub/mobile-detect\n```\n\nAfter that you have to register extension in config.neon.\n\n```neon\nextensions:\n\tmobileDetect: IPub\\MobileDetect\\DI\\MobileDetectExtension\n```\n\nPackage contains trait, which you will have to use in class, where you want to use mobile detector.\n\n```php\n\u003c?php\n\nclass BasePresenter extends Nette\\Application\\UI\\Presenter\n{\n    use IPub\\MobileDetect\\TMobileDetect;\n    \n    // Rest of code...\n}\n```\n\n## Documentation\n\nLearn how to get info about visitor device in [documentation](https://github.com/iPublikuj/mobile-detect/blob/master/docs/en/index.md).\n\n***\nHomepage [https://www.ipublikuj.eu](https://www.ipublikuj.eu) and repository [http://github.com/iPublikuj/mobile-detect](http://github.com/iPublikuj/mobile-detect).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipublikuj-archive%2Fmobile-detect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fipublikuj-archive%2Fmobile-detect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipublikuj-archive%2Fmobile-detect/lists"}