PHPackages                             lukasznowicki/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. lukasznowicki/php-browser-detection

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

lukasznowicki/php-browser-detection
===================================

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

v2.0(5y ago)1150MITPHPPHP &gt;=5.3.0

Since Mar 23Pushed 5y agoCompare

[ Source](https://github.com/lukasznowicki/php-browser-detection)[ Packagist](https://packagist.org/packages/lukasznowicki/php-browser-detection)[ Docs](https://github.com/foroco/php-browser-detection)[ RSS](/packages/lukasznowicki-php-browser-detection/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (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 165 browser types and over 60 OS types.
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.
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`:

```
