Download the PHP package performancehorizongroup/ua-parser without Composer
On this page you can find all versions of the php package performancehorizongroup/ua-parser. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download performancehorizongroup/ua-parser
More information about performancehorizongroup/ua-parser
Files in performancehorizongroup/ua-parser
Package ua-parser
Short Description A multi-language port of Browserscope's user agent parser.
License MIT
Informations about the package ua-parser
ua-parser
ua-parser
is a multi-language port of BrowserScope's user agent string parser.
The crux of the original parser--the data collected by Steve Souders over the years--has been extracted into a separate YAML file so as to be reusable as is by implementations in other programming languages.
ua-parser
is just a small wrapper around this data.
Maintainers
- C#: Søren Enemærke (@sorenenemaerke)
- D: Shripad K (@24shri)
- Go: Yihuan Zhou (@yihuanz)
- Haskell: Ozgun Ataman (@ozataman)
- Java: Steve Jiang (@sjiang)
- JavaScript: Tobie Langel (@tobie)
- Perl: Mamod Mehyar (@mamod)
- PHP: Lars Strojny (@lstrojny)
- Pig: Niels Basjes (@nielsbasjes)
- Python: Lindsey Simon (@elsigh)
regexes.yaml
: Lindsey Simon & Tobie Langel
irc channel
#ua-parser on freenode.
Contributing Changes to regexes.yaml
Please read the contributors' guide
Other ua-parser Libraries
There are a few other libraries which make use of ua-parser's patterns. These include:
- Ruby - user_agent_parser
Usage :: node.js
Note if you're only interested in one of the ua
, device
or os
objects, you will getter better performance by using the more specific methods (uaParser.parseUA
, uaParser.parseOS
and uaParser.parseDevice
respectively), e.g.:
Usage :: python
You can install ua-parser
by running:
And here's how to use it:
Usage :: java
Usage :: Pig
For Pig there are UDFs for getting a single value and UDFs for getting a tuple with all values for either Device, Os of UserAgent. For most usecases the tuple UDFs will be the most useful.
The versions that return only a single value:
Usage :: php
More information is available in the README in the PHP directory
Usage :: D
Usage :: C#
Install the NuGet package
Install-Package UAParser
Sample Usage:
Usage :: Perl
Usage :: Haskell
Please refer to Haddocks for more info; the API is pretty straightforward.
Usage :: Go
Install the package:
go get "github.com/tobie/ua-parser/go/uaparser"
Sample Usage
More information is available in the README in the Go directory
License
The data contained in regexes.yaml
is Copyright 2009 Google Inc. and available under the Apache License, Version 2.0.
The original python code is Copyright 2008 Google Inc. and is available under the Apache License, Version 2.0.
The JS port is Copyright 2010 Tobie Langel and is available under your choice of MIT or Apache Version 2.0 license.
The PHP port is Copyright (c) 2011-2012 Dave Olsen and is available under the MIT license.
The Java port is Copyright (c) 2012 Twitter, Inc and is available under the Apache License, Version 2.0.
The D port is Copyright (c) 2012 Shripad K and is available under the MIT license.
The C# port is Copyright (c) 2012 Søren Enemærke and is available under the Apache License, Version 2.0.
The Perl port is Copyright (c) 2012 Mamod Mehyar and is available under the Perl License, Version 5.10.1.
The Pig port is Copyright (c) 2013 Niels Basjes and is available under the Apache License, Version 2.0.
The Go port is Copyright (c) 2013 Yihuan Zhou and is available under the MIT License.
All versions of ua-parser with dependencies
symfony/filesystem Version ~2
symfony/finder Version ~2
symfony/console Version ~2