{"id":94491,"library":"browscap-browscap-php","title":"Browscap PHP","description":"Standalone replacement for PHP's native get_browser() function.","status":"active","version":"7.7.1","language":"php","source_language":null,"source_url":"https://github.com/browscap/browscap-php","tags":["browser","detection","user-agent","capabilities"],"install":[{"cmd":"composer require browscap/browscap-php","lang":"bash","label":"composer require"}],"dependencies":[],"imports":[{"symbol":"Browscap","correct":"use BrowscapPHP\\Browscap;"}],"quickstart":{"code":"<?php\nuse BrowscapPHP\\Browscap;\n$browscap = new Browscap();\n$browser = $browscap->getBrowser('Mozilla/5.0 ...');\necho $browser->getBrowser();","lang":"php","description":"Detect browser capabilities from a user agent string."},"warnings":[{"fix":"Use a persistent cache like Redis or APCu.","message":"Requires PHP 7.4+; large cache file may cause memory issues.","severity":"gotcha","affected_versions":">=7.0.0"}],"env_vars":null,"search_vec":"'agent':16 'browscap':1 'browser':10,12 'capabl':17 'detect':13 'function':11 'get':9 'nativ':8 'php':2,6 'replac':4 'standalon':3 'user':15 'user-ag':14","created_at":"2026-06-19T10:07:18.843272+00:00","updated_at":"2026-06-19T10:07:18.843272+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/browscap/browscap-php","github":"https://github.com/browscap/browscap-php","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"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}}