donatj/phpuseragentparser
Lightweight PHP user-agent parser for detecting modern browsers and platforms from UA strings. Tiny codebase (<200 lines, 3 regexes), fast and accurate (including tricky IE versions). Composer-ready, 100% unit-tested, with optional object wrapper.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ergebnis/agent-detector | 0.83 | Detect the presence of coding agents in your PHP app by checking environment variables. Supports Amp, Antigravity, Augment, Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, and more via a simple Detector::isAgentPresent() API. | 16 | 16 | 1 | 4M | 1 | 16.9 | 63.1 | MIT | 2 months ago | |
| whichbrowser/parser | 0.83 | PHP user-agent parser for browser sniffing (use sparingly). WhichBrowser/Parser identifies browser, engine, OS and device with names and versions. Works on PHP 7.0+ including PHP 8; useful for analytics or UX edge cases. | 1,841 | 1,848 | 238 | 400K | 21 | 25.9 | 41.2 | MIT | 2 years ago | |
| ua-parser/uap-php | 0.81 | UA Parser for PHP: parse browser user agents into structured data (browser, engine, OS, device) using the uap-core regex database. Helpful for analytics, logging, and device detection; easy integration via Composer and built-in caching support. | 562 | 575 | 86 | 888K | 3 | 6.4 | 45.5 | NOASSERTION | — | |
| andres-montanez/useragentstring-bundle | 0.81 | — | 1 | 1 | 4 | 0 | 0 | 2.2 | — | — | 10 years ago | |
| dungeonworx/laravel-devicedetector | 0.80 | — | 9 | 9 | 2 | 0 | 0 | 0.4 | — | MIT | 7 years ago | |
| jms/parser-lib | 0.80 | jms/parser-lib is a lightweight PHP parser library by JMS, providing reusable parsing components to build custom parsers quickly. Ideal for interpreting structured text and creating DSLs. Full docs available at jmsyst.com/libs/parser-lib. | 827 | 834 | 15 | 190K | 1 | 5.0 | 32.6 | Apache-2.0 | 4 years ago | |
| matomo/device-detector | 0.80 | Parses User-Agent strings and browser Client Hints to identify device type (desktop/tablet/mobile/TV/console), client apps (browsers, media players, feed readers), operating systems, and device brand/model. Composer-ready PHP library. | 3,509 | 3,519 | 512 | 1M | 63 | 75.8 | 68.2 | LGPL-3.0 | 2 months ago | |
| jeremykendall/php-domain-parser | 0.80 | Parse, validate, and normalize domains, subdomains, and suffixes using the Public Suffix List. Extract registrable domain vs. subdomain, handle IDNs and edge cases, and keep parsing rules current via PSL updates—ideal for URL processing, cookies, and security checks. | 1,241 | 1,249 | 126 | 339K | 0 | 19.0 | 33.7 | MIT | 1 year ago | |
| mf2/mf2 | 0.79 | Pure PHP microformats2 parser that turns HTML into structured data. Uses generic rules (p-, u-, etc.) rather than hard-coded formats, keeping the parser small and maintainable. Install via Composer; optionally uses masterminds/html5 for better HTML5 parsing. | 199 | 202 | 39 | 6K | 22 | 12.6 | 30.8 | CC0-1.0 | 4 years ago | |
| nikic/php-parser | 0.79 | Parse PHP code into an Abstract Syntax Tree (AST) for static analysis, manipulation, and code generation. Supports PHP 5.x to 8.4, handles errors gracefully, and preserves formatting during AST-to-code conversion. Easily traverse, modify, and convert ASTs back to PHP, with JSON serialization support... | 17,450 | 17,523 | 1,131 | 17M | 49 | 84.5 | 74.6 | BSD-3-Clause | 1 month ago | |
| kekos/multipart-form-data-parser | 0.79 | Parse multipart/form-data bodies in PHP, including raw HTTP input. Useful for handling file uploads and form fields when your environment doesn’t populate $_FILES/$_POST (e.g., non-standard servers, PUT/PATCH requests). | 1 | 1 | 1 | 12K | 0 | 0.0 | 51.9 | — | — | |
| acasademont/wurfl | 0.79 | — | 1 | 1 | 0 | 0 | 0 | 0.0 | — | AGPL-3.0 | — | |
| hisorange/browser-detect | 0.79 | — | 1,142 | 1,160 | 144 | 226K | 12 | 23.7 | 39.6 | MIT | 2 years ago | |
| mobiledetect/mobiledetectlib | 0.79 | Lightweight PHP library to detect mobile devices and tablets using User-Agent and HTTP headers. Provides simple checks like isMobile() and isTablet(), regularly updated with device rules, and easy to install via Composer for any PHP app. | 10,681 | 10,782 | 2,612 | 4M | 18 | 63.5 | 46.3 | MIT | 2 months ago | |
| piwik/device-detector | 0.78 | Parse User-Agent strings and Browser Client Hints to identify device type (desktop/tablet/mobile/TV/console, etc.), browser/client, operating system, and device brand/model. Universal PHP library from Matomo for accurate device detection. | 3,509 | 3,538 | 512 | 49K | 63 | 75.8 | 47.9 | LGPL-3.0 | 2 months ago | |
| prinsfrank/pdfparser | 0.78 | — | 164 | 164 | 13 | 5K | 11 | 34.8 | 30.5 | MIT | 2 weeks ago | |
| diego182/mobile-detect | 0.78 | Symfony bundle wrapper for Mobile Detect. Provides auto-configuration and autowiring so you can inject a MobileDetect service into your app to detect mobile/tablet devices from the user agent with minimal setup. | 1 | 1 | 0 | 64 | 0 | 8.7 | 22.5 | MIT | 7 months ago | |
| browscap/browscap-php | 0.78 | browscap-php is a PHP library for detecting browser, platform, and device details from User-Agent strings using the Browscap database. It provides easy updates, caching, and a simple API for accurate capability detection in web apps. | 442 | 447 | 84 | 87K | 5 | 30.2 | 40.6 | MIT | 3 months ago | |
| crossknowledge/devicedetect-bundle | 0.78 | — | 8 | 8 | 4 | 0 | 1 | 1.3 | — | — | 5 years ago | |
| acsiomatic/device-detector-bundle | 0.78 | Symfony bundle integrating Matomo DeviceDetector. Provides a configured DeviceDetector service for the main request plus Twig global and routing condition support. Detect devices, browsers/clients, OS, brands/models, and bots with optional caching and auto-parse. | 12 | 12 | 1 | 6K | 2 | 2.3 | 37.0 | MIT | 1 year ago |
How can I help you explore Laravel packages today?