PHPackages                             mimmi20/browscap-php-unsorted - 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. mimmi20/browscap-php-unsorted

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

mimmi20/browscap-php-unsorted
=============================

Standalone replacement for php's native get\_browser() function

087PHP

Since Jan 27Pushed 6y ago1 watchersCompare

[ Source](https://github.com/mimmi20/browscap-unsorted)[ Packagist](https://packagist.org/packages/mimmi20/browscap-php-unsorted)[ RSS](/packages/mimmi20-browscap-php-unsorted/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Browser Capabilities PHP Project
================================

[](#browser-capabilities-php-project)

This is a userland replacement for PHP's native `get_browser()` function, which is *officially supported* by the Browser Capabilities Project.

Forked from .

[![Build Status](https://camo.githubusercontent.com/cacf9542609aa81a46b804be30724b61216e99502baf6abb330b53b4800452a9/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f62726f77736361702f62726f77736361702d7068702e706e673f6272616e63683d322e78)](http://travis-ci.org/browsecap/browscap-php) [![Code Coverage](https://camo.githubusercontent.com/434792812608013311b0457d4605160b9732d53eec0dbfe4f1c8b71164717e51/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f62726f77736361702f62726f77736361702d7068702f6261646765732f636f7665726167652e706e673f733d36316362333263613833643230353365643962313430363930623665313864666130306534363339)](https://scrutinizer-ci.com/g/browscap/browscap-php/) [![Scrutinizer Quality Score](https://camo.githubusercontent.com/a10997424eee3355d92d09933b4dd69ee9ae8b4ba41ac9c17bb15791d62c8f15/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f62726f77736361702f62726f77736361702d7068702f6261646765732f7175616c6974792d73636f72652e706e673f733d64623163633136393962316362366163366165343637353465663936313232313765626135353236)](https://scrutinizer-ci.com/g/browscap/browscap-php/)

Installation
------------

[](#installation)

Run the command below to install via Composer

```
composer require browscap/browscap-php
```

Then you may identify the current user agent like so:

```
use phpbrowscap\Browscap;

$browscap = new Browscap();
$info = $browscap->getBrowser();
```

Recommended Setup
-----------------

[](#recommended-setup)

It is highly recommended that you disable the auto update functionality, and create a background cron script to perform the update. This way, you do not make another request every time. So your usual usage would look like this:

```
use phpbrowscap\Browscap;

$browscap = new Browscap($cacheDir);
$browscap->doAutoUpdate = false;
$info = $browscap->getBrowser();
```

And you could write a cron script such as this, to run once a day:

```
use phpbrowscap\Browscap;

$browscap = new Browscap($cacheDir);
$browscap->updateCache();
```

Issues and feature requests
---------------------------

[](#issues-and-feature-requests)

Please report your issues and ask for new features on the GitHub Issue Tracker at

Please report incorrectly identified User Agents and browser detect in the browscap.ini file here:

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor1

Top contributor holds 96.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/5fea77dd303122241a6caac15ea7456607bcb6f5db869fc8fc9eaf3ec0630a84?d=identicon)[mimmi20](/maintainers/mimmi20)

---

Top Contributors

[![mimmi20](https://avatars.githubusercontent.com/u/1120192?v=4)](https://github.com/mimmi20 "mimmi20 (26 commits)")[![dependabot-support](https://avatars.githubusercontent.com/u/112581971?v=4)](https://github.com/dependabot-support "dependabot-support (1 commits)")

---

Tags

php71php72

### Embed Badge

![Health badge](/badges/mimmi20-browscap-php-unsorted/health.svg)

```
[![Health](https://phpackages.com/badges/mimmi20-browscap-php-unsorted/health.svg)](https://phpackages.com/packages/mimmi20-browscap-php-unsorted)
```

###  Alternatives

[asdh/laravel-flatpickr

A laravel clone of the javascript flatpickr package

6544.4k](/packages/asdh-laravel-flatpickr)[topthink/think-annotation

Annotation For ThinkPHP

4832.9k8](/packages/topthink-think-annotation)[trexology/pointable

Point system for Laravel 5

433.0k](/packages/trexology-pointable)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
