PHPackages                             enflow/laravel-outdated-browser - 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. enflow/laravel-outdated-browser

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

enflow/laravel-outdated-browser
===============================

Add an outdated browser message with easy

3.2.0(1y ago)322.9k—3.6%[1 PRs](https://github.com/enflow/laravel-outdated-browser/pulls)MITPHPPHP ^8.3CI passing

Since Nov 23Pushed 1y ago3 watchersCompare

[ Source](https://github.com/enflow/laravel-outdated-browser)[ Packagist](https://packagist.org/packages/enflow/laravel-outdated-browser)[ Fund](https://enflow.nl/contact)[ RSS](/packages/enflow-laravel-outdated-browser/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (4)Versions (9)Used By (0)

Outdated browsers warnings
==========================

[](#outdated-browsers-warnings)

[![Latest Version on Packagist](https://camo.githubusercontent.com/1ffa7c10fb923bfe042906535e4d508e27e6aa866d1f3d0435b646a7a3fa5f9a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f656e666c6f772f6c61726176656c2d6f757464617465642d62726f777365722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/enflow/laravel-outdated-browser)
[![GitHub Workflow Status](https://github.com/enflow/laravel-outdated-browser/workflows/run-tests/badge.svg)](https://github.com/enflow/laravel-outdated-browser/workflows/run-tests/badge.svg)
[![Total Downloads](https://camo.githubusercontent.com/7d5a883a0e8991bf353f86a59cffcb0029c15354ae586dcb243ddc4d2740fcc7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f656e666c6f772f6c61726176656c2d6f757464617465642d62726f777365722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/enflow/laravel-outdated-browser)

The `enflow/laravel-outdated-browser` package provides an easy way to warn your users about an outdated browser.

The user is presented with a full-screen page to encourage them to upgrade to a modern browser. They may skip this message and continue to view the website in their (crappy) browser.

[![Gate Example](./docs/gate.png)](./docs/gate.png)

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

[](#installation)

You can install the package via composer:

```
composer require enflow/laravel-outdated-browser
```

Usage
-----

[](#usage)

You should add the `\Enflow\OutdatedBrowser\OutdatedBrowserMiddleware` class to your `App\Http\Kernel` file.

Add it to the bottom of the `web` group:

```
'web' => [
 ...,
 \Enflow\OutdatedBrowser\OutdatedBrowserMiddleware::class,
],
```

Config
------

[](#config)

Pushing the config file by running:

```
php artisan vendor:publish --provider="Enflow\OutdatedBrowser\OutdatedBrowserServiceProvider" --tag=config
```

Detector classes
----------------

[](#detector-classes)

A detector class can be specified via the config file, which should implement the `Enflow\OutdatedBrowser\Detector\Detector` interface.

This class is responsible for determining if the user should be presented with an outdated browser message.
By default, the `UserAgentDetector` is used, which searches for the `outdated-browser.blocked_user_agent_regexes` key for regexes to match the user agent against.

For the `UserAgentDetector`, all users with Internet Explorer are presented with the gate. You may change the regexes to your need.

Memory classes
--------------

[](#memory-classes)

A memory class can be specified via the config file, which should implement the `Enflow\OutdatedBrowser\Memory\Memory` interface.

This class is responsible for checking if the user continued through the gate, and responsible for saving when the user pressed 'Proceed'.

Inspector classes
-----------------

[](#inspector-classes)

A inspector class can be specified via the config file, which should implement the `Enflow\OutdatedBrowser\Inspector\Inspector` interface.

This class is responsible for checking the request and determining if now is the right time to show the 'outdated browser' gate. By default, the `FirstUserRequest` inspector is used, which will show the gate on the first GET request, excluding AJAX requests.

View
----

[](#view)

You may publish the `gate` view to overrule it's styling and make it your own:

```
php artisan vendor:publish --provider="Enflow\OutdatedBrowser\OutdatedBrowserServiceProvider" --tag=views
```

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Michel Bardelmeijer](https://github.com/mbardelmeijer)
- [Ron Kesting](https://github.com/ronkesting)
- [All Contributors](../../contributors)

About Enflow
------------

[](#about-enflow)

Enflow is a digital creative agency based in Alphen aan den Rijn, Netherlands. We specialize in developing web applications, mobile applications and websites. You can find more info [on our website](https://enflow.nl/en).

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance43

Moderate activity, may be stable

Popularity30

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 61.7% 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 ~258 days

Recently: every ~277 days

Total

7

Last Release

450d ago

Major Versions

1.1.0 → 2.0.02022-02-09

2.1.0 → 3.0.02023-02-24

PHP version history (5 changes)1.0.0PHP ^7.4

1.1.0PHP ^7.4|^8.0

2.0.0PHP ^8.1

3.0.0PHP ^8.2

3.2.0PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/665ee1919e7c3d12f556cb913d0012a632271f912dc9c3250b7da67d7f3f4b16?d=identicon)[enflow](/maintainers/enflow)

---

Top Contributors

[![mbardelmeijer](https://avatars.githubusercontent.com/u/1583095?v=4)](https://github.com/mbardelmeijer "mbardelmeijer (29 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (10 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (7 commits)")[![ronkesting](https://avatars.githubusercontent.com/u/12963798?v=4)](https://github.com/ronkesting "ronkesting (1 commits)")

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/enflow-laravel-outdated-browser/health.svg)

```
[![Health](https://phpackages.com/badges/enflow-laravel-outdated-browser/health.svg)](https://phpackages.com/packages/enflow-laravel-outdated-browser)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[orchestra/canvas

Code Generators for Laravel Applications and Packages

20917.2M158](/packages/orchestra-canvas)[illuminate/pipeline

The Illuminate Pipeline package.

9346.6M213](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)

PHPackages © 2026

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