/UASparser

User Agent String parser for PHP from user-agent-string.info

Primary LanguagePHPGNU Lesser General Public License v2.1LGPL-2.1

#UASparser

A User Agent String parser for PHP

Build Status Coverage Status Dependency Status Depending Status

Scrutinizer Quality Score Code Coverage

Latest Stable Version Latest Unstable Version

Bitdeli Badge

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
  • Creates a UAS namespace
  • Adds unit tests
  • Adds Travis config
  • Removes the view source option for security
  • Makes the downloadData function public so it can be done on demand
  • Uses the system temp dir for default cache location
  • Cleans up phpdocs
  • Reformats code in PSR-2 style
  • Fixes poor code in the example script
  • Improves error handling and debugging, adds variable timeouts
  • Adds support for gzip compression of database downloads
  • Adds PSR-0 autoload config

##Documentation

Release notes may be found in the changelog.

Generate PHPDocs like this:

phpdoc --directory UAS --target ./phpdoc --ignore Tests/ --sourcecode --force --title UASParser