synchro / uasparser
UASparser is a PHP parser and classifier for user agent strings presented by HTTP clients using databases from http://user-agent-string.info/.
Installs: 16 406
Dependents: 0
Suggesters: 0
Security: 0
Stars: 19
Watchers: 4
Forks: 9
Open Issues: 2
Requires
- php: >=5.3.0
Requires (Dev)
- mikey179/vfsstream: ~1.5
- phpunit/phpcov: dev-master
- phpunit/phpunit: ~4.7
- phpunit/phpunit-story: *
- satooshi/php-coveralls: dev-master
This package is auto-updated.
Last update: 2024-12-14 01:22:56 UTC
README
Important: while the code in this package is functional, it's no longer any use because the data source at user-agent-string.info (now udger.com) it relied on is no longer available.
It may work with udger.com's commercial data sources, but that's not available to test with; I recommend you switch to a different system such as Mobile-Detect.
This is a parser and classifier for user agent strings presented by HTTP clients.
This code is based on the libraries by Jaroslav Mallat available from http://user-agent-string.info/
Licensed under the LGPL, see license.txt for details.
This version improved by Marcus Bointon:
- Maintained on GitHub
- Published on packagist.org
- "Runs" under PHP 7.3 and up.
- Uses the UAS namespace
- Reformatted code in PSR-12 style
- PSR-4 autoloading
Documentation
Release notes may be found in the changelog.
Generate PHPDocs like this:
phpdoc --directory UAS --target ./phpdoc --ignore Tests/ --sourcecode --force --title UASParser