awesome-repositories.com
博客
MCP
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
jenssegers avatar

jenssegers/agent

0
View on GitHub↗
4,813 星标·528 分支·PHP·MIT·6 次浏览jenssegers.com↗

Agent

该项目是一个 PHP 用户代理(User Agent)解析器和移动设备检测器。它分析 HTTP 用户代理字符串以识别访问者的 Web 浏览器、操作系统和设备类型。

该库为 Laravel Web 框架提供了专门的集成。它能够区分手机、平板电脑和台式计算机,同时识别 Web 机器人和搜索引擎爬虫的具体名称。

该工具的功能包括从请求头中提取首选语言并验证特定的用户代理属性。它使用正则表达式模式匹配和静态数据映射来分类客户端并进行内容本地化。

Features

  • User Agent Parsers - Analyzes user agent strings to identify the visitor's browser, operating system, and device type.
  • Browser and OS Identification - Extracts the specific name and version of the web browser and operating system from user agent strings.
  • Crawler Detection - Identifies if a request comes from a web robot and retrieves the specific name of the search engine crawler.
  • Regex Pattern Matchers - Uses a comprehensive library of regular expressions to match user agent strings against known device and browser patterns.
  • Client Device Detection - Identifies whether a visitor is using a mobile phone, tablet, or desktop computer to serve optimized content.
  • Device Detectors - Distinguishes between mobile phones, tablets, and desktop computers based on request headers.
  • Device Type Detection - Determines if a visitor is using a phone, tablet, or desktop to deliver an optimized mobile experience.
  • HTTP Header Parsers - Parses raw HTTP request headers to isolate user agent strings and language preferences for analysis.
  • Crawler Identification - Detects if incoming requests originate from search engine robots or other automated web scrapers.
  • Web - Extracts preferred languages and device data in PHP to serve localized versions of a website.
  • Accept-Language Locale Settings - Automatically detects the user's preferred locale by extracting the Accept-Language HTTP header.
  • User Agent Validators - Allows verification of user agent strings against target versions or custom regular expressions.
  • Laravel Integrations - Provides a dedicated integration for the Laravel framework to facilitate client-based UI tailoring.
  • PHP Framework Integrations - Provides a service provider integration that allows the library to be seamlessly injected into PHP frameworks.
  • Bot Detectors - Identifies if a request comes from a web robot and retrieves the specific name of the crawler.
  • 字符串操作 - Parses user agent strings for device detection.

Star 历史

jenssegers/agent 的 Star 历史图表jenssegers/agent 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

常见问题解答

jenssegers/agent 是做什么的?

该项目是一个 PHP 用户代理(User Agent)解析器和移动设备检测器。它分析 HTTP 用户代理字符串以识别访问者的 Web 浏览器、操作系统和设备类型。

jenssegers/agent 的主要功能有哪些?

jenssegers/agent 的主要功能包括:User Agent Parsers, Browser and OS Identification, Crawler Detection, Regex Pattern Matchers, Client Device Detection, Device Detectors, Device Type Detection, HTTP Header Parsers。

jenssegers/agent 有哪些开源替代品?

jenssegers/agent 的开源替代品包括: hgoebl/mobile-detect.js — mobile-detect.js is a JavaScript library for user agent detection. It analyzes browser request headers to identify… matthewhudson/current-device — current-device is a JavaScript device detection library used to identify operating systems, device categories, and… arasatasaygin/is.js — is.js is a JavaScript validation library and data type checker. It provides a suite of utilities to verify whether… faisalman/ua-parser-js — ua-parser-js is a JavaScript library used to extract browser, operating system, and device information from raw user… bowser-js/bowser — Bowser is a browser detection library that parses user-agent strings to identify a browser's name, version, rendering… fake-useragent/fake-useragent — fake-useragent is a tool for generating realistic browser identification strings and parsing existing agents into…

Agent 的开源替代方案

相似的开源项目,按与 Agent 的功能重合度排序。
  • hgoebl/mobile-detect.jshgoebl 的头像

    hgoebl/mobile-detect.js

    4,137在 GitHub 上查看↗

    mobile-detect.js is a JavaScript library for user agent detection. It analyzes browser request headers to identify hardware types, operating systems, and browser versions. The library includes a client hardware profiler that assigns performance and capability grades to mobile devices based on their characteristics. It also provides tools to apply specific CSS classes to the document body based on detected hardware to enable responsive styling. The project covers broad analysis capabilities, including the detection of mobile phones, tablets, and desktop computers. It extracts operating system

    JavaScript
    在 GitHub 上查看↗4,137
  • matthewhudson/current-devicematthewhudson 的头像

    matthewhudson/current-device

    3,934在 GitHub 上查看↗

    current-device is a JavaScript device detection library used to identify operating systems, device categories, and screen orientations within a web browser environment. It serves as a browser environment detector and client-side mapper that translates browser metadata and user-agent strings into predefined device labels and hardware categories. The library provides tools for executing specific JavaScript logic based on the detected mobile or desktop platform. It also functions as a conditional styling tool and document body class injector, applying descriptive HTML classes to enable device-sp

    TypeScriptdevice-detectionjavascriptmobile
    在 GitHub 上查看↗3,934
  • arasatasaygin/is.jsarasatasaygin 的头像

    arasatasaygin/is.js

    9,078在 GitHub 上查看↗

    is.js is a JavaScript validation library and data type checker. It provides a suite of utilities to verify whether variables are primitives, arrays, functions, or specific object types. The project allows for the implementation of custom validation logic and the use of naming namespaces to override default rules and regular expressions. It covers a broad range of validation capabilities, including numeric arithmetic properties, date and time analysis for relative and absolute ranges, and string format verification for patterns such as emails, URLs, and IP addresses. The library also includes

    JavaScript
    在 GitHub 上查看↗9,078
  • faisalman/ua-parser-jsfaisalman 的头像

    faisalman/ua-parser-js

    10,140在 GitHub 上查看↗

    ua-parser-js is a JavaScript library used to extract browser, operating system, and device information from raw user agent strings and client hints. It functions as a cross-platform tool that runs in both web browsers and Node.js server environments to identify web visitors. The library integrates modern HTTP client hint headers to retrieve hardware and browser details with higher accuracy than standard string parsing. It also includes a specialized detector to identify automated AI agents, web crawlers, and bots to distinguish human traffic from automated scripts. The project covers hardwar

    JavaScriptanalyticsbot-detectionbrowser-detection
    在 GitHub 上查看↗10,140
查看 Agent 的所有 30 个替代方案→