{"id":41993266,"url":"https://github.com/leowebguy/devicedetect","last_synced_at":"2026-01-26T00:47:15.985Z","repository":{"id":41069141,"uuid":"497996558","full_name":"leowebguy/devicedetect","owner":"leowebguy","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-22T15:58:10.000Z","size":18,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-13T20:27:13.114Z","etag":null,"topics":["craft-plugin","craftcms"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leowebguy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2022-05-30T15:20:29.000Z","updated_at":"2024-11-22T15:58:13.000Z","dependencies_parsed_at":"2024-03-27T04:34:25.361Z","dependency_job_id":"b7ac0d75-8b3b-49be-abf9-b5bf141379a3","html_url":"https://github.com/leowebguy/devicedetect","commit_stats":{"total_commits":7,"total_committers":3,"mean_commits":"2.3333333333333335","dds":0.2857142857142857,"last_synced_commit":"c23ed68d5b15cc935fa9806895c4fb21c5a15451"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/leowebguy/devicedetect","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leowebguy%2Fdevicedetect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leowebguy%2Fdevicedetect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leowebguy%2Fdevicedetect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leowebguy%2Fdevicedetect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leowebguy","download_url":"https://codeload.github.com/leowebguy/devicedetect/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leowebguy%2Fdevicedetect/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28763019,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T00:37:26.264Z","status":"ssl_error","status_checked_at":"2026-01-26T00:37:25.959Z","response_time":113,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["craft-plugin","craftcms"],"created_at":"2026-01-26T00:47:15.467Z","updated_at":"2026-01-26T00:47:15.962Z","avatar_url":"https://github.com/leowebguy.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Device Detect plugin for Craft\n\n### Detect devices, OS, bots and more\n\nWrapper around [MobileDetect](http://mobiledetect.net/) by [@serbanghita](https://github.com/serbanghita)\n\n## Installation\n\nOpen your terminal and go to your Craft project:\n\n```bash\ncomposer require leowebguy/device-detect -w \u0026\u0026 php craft plugin/install device-detect\n```\n\n## Usage\n\nThe plugin exposes most of MobileDetect's methods, and can be used in your Twig:\n\n```twig\n{{ craft.deviceDetect.isMobile ? 'I am mobile.' : 'I am not mobile.' }}\n```\n\nDevices\n\n```twig\n{{ craft.deviceDetect.isMobile }}\n{{ craft.deviceDetect.isTablet }}\n{{ craft.deviceDetect.isiPad }}\n{{ craft.deviceDetect.isPhone }}\n```\n\nOS\n\n```twig\n{{ craft.deviceDetect.isiOS }}\n{{ craft.deviceDetect.isiPadOS }}\n{{ craft.deviceDetect.isAndroidOS }}\n\nUser agent\n\n```twig\n{{ craft.deviceDetect.getUserAgent }}\n```\n\ngetUserAgent returns string i.e. _Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleowebguy%2Fdevicedetect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleowebguy%2Fdevicedetect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleowebguy%2Fdevicedetect/lists"}