Download the PHP package ready2order/user-agent-parser without Composer

On this page you can find all versions of the php package ready2order/user-agent-parser. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package user-agent-parser

UserAgentParser

Build Status Code Coverage Scrutinizer Code Quality

Latest Stable Version Latest Unstable Version License Total Downloads

User agent parsing is, was and will always be a painful thing.

The target of this package is to make it less painful, by providing an abstract layer for many user agent parsers.

Currently 11 local providers and 6 HTTP providers are available! See the comparison list here

So you can

The quality of this package is currently covered by

Try it out

LIVE test

Compare the detection results of the parsers

Installation

Using composer is currently the only supported way to install this package.

Note: to use local providers you need to install additional packages, which are listed inside the composer suggests section

Getting started

You need to register an API key or install an additional package (listed in the section suggest of composer.json)

Use cases

Bot or human

Mobile detection

Providers

UserAgentParser comes with local and http providers

See detailed documenation here

local providers

http providers

Name Type Browser Engine Operating system Device model Device brand Device type Is mobile Is bot Bot name Bot type Comment
BrowscapFull local x x x x x x x x x x
BrowscapLite local x x x x
BrowscapPhp local x x x x x x
DonatjUAParser local x
Endorphin local x x x x x x
HandsetDetection local x x x x
JenssegersAgent local x x x x x Based on MobileDetect
PiwikDeviceDetector local x x x x x x x x x x
SinergiBrowserDetector local x x x x x
UAParser local x x x x x x
WhichBrowser local x x x x x x x x
Woothee local x x x x
Zsxsoft local x x x x
DeviceAtlasCom http x x x x free available
FiftyOneDegreesCom http x x x x x x x x free unlimited
NeutrinoApiCom http x x x x x x x x 25/day free
UdgerCom http x x x x x 500/month free (API key only for one month valid!)
UserAgentApiCom http x x x x x 1000/day free
WhatIsMyBrowserCom http x x 500/month free

Local providers

Local providers are (most time) faster then HTTP providers and dont require a working internet connection. But you need to update them yourself from time to time, to make sure you detect the latest UAs

HTTP providers (API)

HTTP providers are simple to use, since you need only an API key to get started. But they require (always) a working internet connection.

Comparison matrix

Here is a comparison matrix, with many analyzed UserAgent strings, to help you device which provider fits your needs. Every provider has it's strengh and weakness, so it will depend on your need, which one you should use.

Go to the comparison

Overview

Single provider

Chain provider

This is very useful to improve your results. The chain provider starts with the first provider and checks if there is a result, if not it takes the next one and so on. If none of them have a result, it will throw a NoResultException like a single provider.


All versions of user-agent-parser with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0
guzzlehttp/guzzle Version ^7.9
composer-runtime-api Version ^2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ready2order/user-agent-parser contains the following files

Loading the files please wait ....