{"id":87052,"library":"mobiledetect-mobiledetectlib","title":"Mobile Detect","description":"Mobile_Detect is a lightweight PHP class for detecting mobile devices. It uses the User-Agent string combined with specific HTTP headers to detect the mobile environment.","status":"active","version":"4.11.0","language":"php","source_language":null,"source_url":"https://github.com/serbanghita/Mobile-Detect","tags":["mobile","detection","user-agent","device"],"install":[{"cmd":"composer require mobiledetect/mobiledetectlib","lang":"bash","label":"composer require"}],"dependencies":[],"imports":[{"symbol":"MobileDetect","correct":"use Detection\\MobileDetect;"}],"quickstart":{"code":"use Detection\\MobileDetect;\n\n$detect = new MobileDetect();\nif ($detect->isMobile()) {\n    echo 'Mobile device detected';\n}","lang":"php","description":"Detect if the current request is from a mobile device."},"warnings":[{"fix":"Do not rely solely on this for security decisions.","message":"Detection relies on User-Agent header which can be spoofed.","severity":"gotcha","affected_versions":">=4.0.0"}],"env_vars":null,"search_vec":"'agent':19,35 'class':9 'combin':21 'detect':2,4,11,27,32 'devic':13,36 'environ':30 'header':25 'http':24 'lightweight':7 'mobil':1,3,12,29,31 'php':8 'specif':23 'string':20 'use':15 'user':18,34 'user-ag':17,33","created_at":"2026-06-19T08:12:37.684964+00:00","updated_at":"2026-06-19T08:12:37.684964+00:00","problems":[],"ecosystem":"packagist","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/serbanghita/Mobile-Detect","github":"https://github.com/serbanghita/Mobile-Detect","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility","networking"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-19","next_check":"2026-12-16","install_tag":null}}