Skip to content

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

License

Notifications You must be signed in to change notification settings

h0vhannes/UASparser

 
 

Repository files navigation

#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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%