PHPackages                             saturn-ru/php-browser-detection - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. saturn-ru/php-browser-detection

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

saturn-ru/php-browser-detection
===============================

Ultra fast PHP library to detect browser, OS, platform and device type by User-Agent parsing

v2.7.0(2y ago)02.3k↓23.8%MITPHPPHP &gt;=5.3.0

Since Oct 11Pushed 2y agoCompare

[ Source](https://github.com/saturn-ru/php-browser-detection)[ Packagist](https://packagist.org/packages/saturn-ru/php-browser-detection)[ Docs](https://github.com/foroco/php-browser-detection)[ RSS](/packages/saturn-ru-php-browser-detection/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)DependenciesVersions (2)Used By (0)

PHP Browser Detection
=====================

[](#php-browser-detection)

A PHP library to detect browser, OS, platform and device type by User-Agent parsing.
This library focused on high performance and low memory usage HTTP client parsing.
Uses a simple and fast algorithm to accurately detect more than 200 browsers/apps and over 60 OS.
For most commonly browsers parsing process took less than 0.0005 second even on low-level shared hosting.
In the case of rare User-Agents recognized time is less than 0.0008 second for the same conditioned hosting environment.
The library supports only really actual Browsers and OS without support for outdated environments that are actually not used now.
Newest MacOS Monterey, MacOS Ventura and Windows 11 User-Agents detection included.
Works by use only one library file and without any third-party libraries dependency.

Requirements
------------

[](#requirements)

This library requires PHP 5.3 or higher.

Manual installation
-------------------

[](#manual-installation)

1. Simply upload library file `BrowserDetection.php` (placed in the `src` directory) to your project;
2. Connect PHP library file by using `require_once`:

```
