{"id":14966626,"url":"https://github.com/candasm/yii1-mobile-detect-component","last_synced_at":"2025-10-25T17:30:27.780Z","repository":{"id":62499347,"uuid":"81802014","full_name":"candasm/yii1-mobile-detect-component","owner":"candasm","description":"Mobile Detect Component for YiiFramework 1.1.x ","archived":false,"fork":false,"pushed_at":"2017-02-13T09:32:29.000Z","size":5,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-09-30T22:35:00.941Z","etag":null,"topics":["mobile-detection","yii-extension","yii-framework"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/candasm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-13T08:27:58.000Z","updated_at":"2021-05-07T13:43:59.000Z","dependencies_parsed_at":"2022-11-02T10:00:36.008Z","dependency_job_id":null,"html_url":"https://github.com/candasm/yii1-mobile-detect-component","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/candasm%2Fyii1-mobile-detect-component","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/candasm%2Fyii1-mobile-detect-component/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/candasm%2Fyii1-mobile-detect-component/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/candasm%2Fyii1-mobile-detect-component/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/candasm","download_url":"https://codeload.github.com/candasm/yii1-mobile-detect-component/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219865318,"owners_count":16555929,"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":["mobile-detection","yii-extension","yii-framework"],"created_at":"2024-09-24T13:36:43.056Z","updated_at":"2025-10-25T17:30:27.331Z","avatar_url":"https://github.com/candasm.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"### MobileDetect Component for Yii 1.x\n[![Latest Stable Version](https://poser.pugx.org/candasm/yii1-mobile-detect-component/v/stable)](https://packagist.org/packages/candasm/yii1-mobile-detect-component)\n[![Build Status](https://travis-ci.org/candasm/yii1-mobile-detect-component.svg?branch=master)](https://travis-ci.org/candasm/yii1-mobile-detect-component)\n[![Total Downloads](https://poser.pugx.org/candasm/yii1-mobile-detect-component/downloads)](https://packagist.org/packages/candasm/yii1-mobile-detect-component)\n[![Coverage Status](https://coveralls.io/repos/github/candasm/yii1-mobile-detect-component/badge.svg?branch=master)](https://coveralls.io/github/candasm/yii1-mobile-detect-component?branch=master)\n[![License](https://poser.pugx.org/candasm/yii1-mobile-detect-component/license)](https://packagist.org/packages/candasm/yii1-mobile-detect-component)\n### Install\nIn app config:\n```php\n'components'=\u003earray(\n    ...\n\n    'mobileDetect' =\u003e array(\n        'class' =\u003e 'application.vendors.candasm.yii1-mobile-detect-component.src.MobileDetectComponent'\n    ),\n    \n    ...\n);\n```\n\n### Usage\n```php\n  $detect = Yii::app()-\u003emobileDetect;\n  // call methods\n  $detect-\u003eisMobile();\n  $detect-\u003eisTablet();\n  $detect-\u003eisIphone();\n  ...\n```\nFor more information visit [MobileDetect](https://github.com/serbanghita/Mobile-Detect) Library. \n\n\n\n#####Note: Don't forget to set vendor-dir in composer.json file for YiiFramework 1.1.x versions.\n```\n\"config\":{\n\t\"vendor-dir\":\"protected/vendor/\"\n},\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcandasm%2Fyii1-mobile-detect-component","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcandasm%2Fyii1-mobile-detect-component","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcandasm%2Fyii1-mobile-detect-component/lists"}