Skip to content
P

PhpUserAgent

Lightning Fast, Minimalist PHP User Agent String Parser

by donatjFree

Domain Rating by Ahrefs53

#2493in Utilities
0In stores

Description

PHP User Agent Parser is a small PHP library that reads a browser's HTTP_USER_AGENT string and returns the platform, the browser and the bro…

Highlights

  • Reads platform, browser and browser version from a user agent
  • Procedural function or object-oriented parser
  • Minimalist code that runs on PHP 5.4 or newer
  • Installable with Composer
  • Demo page to test any user agent string
  • List of detected platforms and browsers

Ratings & Reviews

No ratings yet

Be the first to rate PhpUserAgent.

People also visit

U

Uap PHP

PHP implementation of ua-parser

Utilities
Launch
B

Browser.php

A PHP Class to detect a user's Browser

Utilities
Launch
U

UAParser.js

The Essential Web Development Tool for User-Agent Detection

AI
Launch
B

Bowser

a browser detector

Utilities
Launch
I

Is Mobile

Check if mobile browser, based on useragent string

Utilities
Launch
P

PHPScraper

A universal web-util for PHP

Utilities
Launch

PhpUserAgent FAQ

What does it do?

It reads a user agent string and returns the platform, the browser and the browser version.

What do I need?

PHP 5.4.0 or newer, according to the page.

How do I install it?

Run composer require donatj/phpuseragentparser, or download the script from GitHub.

How do I use it?

Call parse_user_agent() for the procedural form, or create a UserAgentParser object and call parse() or use it as a function.

Is it free?

Yes. The script is open source and available on GitHub.

What are the best PhpUserAgent alternatives?

Popular alternatives to PhpUserAgent include Uap PHP, Browser.php and Bowser. See all PhpUserAgent alternatives

Developer Stuff

Badges