PHPackages                             propa/laravel-browscap - 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. propa/laravel-browscap

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

propa/laravel-browscap
======================

Browscap-PHP integration for Laravel 5-12

v3.0.4(12mo ago)1060.3k↓26.1%8MITPHPPHP ^7.1.0 || ^8.0

Since May 4Pushed 12mo ago2 watchersCompare

[ Source](https://github.com/kulbakin/laravel-browscap)[ Packagist](https://packagist.org/packages/propa/laravel-browscap)[ RSS](/packages/propa-laravel-browscap/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (17)Used By (0)

laravel-browscap
================

[](#laravel-browscap)

[Browscap-PHP](https://github.com/browscap/browscap-php) for [Laravel 5](http://laravel.com)/[Lumen 5](https://lumen.laravel.com/)

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

[](#installation)

Run `composer require propa/laravel-browscap`

If you're using Laravel 5.5 or 6 and didn't disabled package auto discovery referencing

### Laravel

[](#laravel)

Reference service provider and corresponding alias in your `app.php` config

```
'providers' => [
    // ...
    Propa\BrowscapPHP\BrowscapServiceProvider::class,
],
```

```
'aliases' => [
    // ...
    'Browscap' => Propa\BrowscapPHP\Facades\Browscap::class,
],
```

Publish package config if necessary

```
php artisan vendor:publish

```

### Lumen

[](#lumen)

For Lumen, register a different Provider in `bootstrap/app.php`:

```
 $app->register(\Propa\BrowscapPHP\BrowscapServiceProvider::class);
```

and also a facade

```
 class_alias(\Propa\BrowscapPHP\Facades\Browscap::class, Browscap::class);
```

Usage
-----

[](#usage)

Console commands defined by BrowscapPHP can be accessed via `artisan`, for the full list see

```
php artisan list browscap

```

Firstly, it is necessary to import browscap.ini and cache it, for that run

```
php artisan browscap:update

```

When necessary cache files are created by the above command, one can call `Browscap::getBrowser()` and analyze detected browser type and features. The extent of feature detection depends on `browscap.ini` file imported (there are lite, default and full versions available).

For more information, look into docs for underlying [BrowscapPHP](https://github.com/browscap/browscap-php).

###  Health Score

49

—

FairBetter than 95% of packages

Maintenance50

Moderate activity, may be stable

Popularity38

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity76

Established project with proven stability

 Bus Factor1

Top contributor holds 57.4% 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.

###  Release Activity

Cadence

Every ~196 days

Recently: every ~295 days

Total

16

Last Release

363d ago

Major Versions

1.1.0 → 2.0.12018-08-16

v2.0.10 → v3.0.12022-03-30

PHP version history (5 changes)1.0.0PHP &gt;=5.4.0

2.0.1PHP &gt;=7.1.0,&lt;7.3.0

v2.0.3PHP ^7.1.0

v2.0.8PHP ^7.1.0|^8.0

v2.0.10PHP ^7.1.0 || ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/817433?v=4)[Pavel Kulbakin](/maintainers/kulbakin)[@kulbakin](https://github.com/kulbakin)

---

Top Contributors

[![kulbakin](https://avatars.githubusercontent.com/u/817433?v=4)](https://github.com/kulbakin "kulbakin (31 commits)")[![vv12131415](https://avatars.githubusercontent.com/u/17382248?v=4)](https://github.com/vv12131415 "vv12131415 (10 commits)")[![thirsch](https://avatars.githubusercontent.com/u/1055937?v=4)](https://github.com/thirsch "thirsch (4 commits)")[![tomsix](https://avatars.githubusercontent.com/u/60874146?v=4)](https://github.com/tomsix "tomsix (4 commits)")[![sync667](https://avatars.githubusercontent.com/u/1151335?v=4)](https://github.com/sync667 "sync667 (2 commits)")[![SergkeiM](https://avatars.githubusercontent.com/u/3294939?v=4)](https://github.com/SergkeiM "SergkeiM (2 commits)")[![geminixxl](https://avatars.githubusercontent.com/u/220698783?v=4)](https://github.com/geminixxl "geminixxl (1 commits)")

---

Tags

browserlaraveluser agentBrowscapbrowscap-php

### Embed Badge

![Health badge](/badges/propa-laravel-browscap/health.svg)

```
[![Health](https://phpackages.com/badges/propa-laravel-browscap/health.svg)](https://phpackages.com/packages/propa-laravel-browscap)
```

###  Alternatives

[jenssegers/agent

Desktop/mobile user agent parser with support for Laravel, based on Mobiledetect

4.8k67.8M440](/packages/jenssegers-agent)[hisorange/browser-detect

Browser &amp; Mobile detection package for Laravel.

1.1k10.1M50](/packages/hisorange-browser-detect)[renoki-co/clusteer

Clusteer is a Puppeteer wrapper written for PHP, with the super-power of parallelizing pages across multiple browser instances.

891.2k](/packages/renoki-co-clusteer)

PHPackages © 2026

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