PHPackages                             skorp/detect-incompatible-samesite-useragents - 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. [Security](/categories/security)
4. /
5. skorp/detect-incompatible-samesite-useragents

ActiveLibrary[Security](/categories/security)

skorp/detect-incompatible-samesite-useragents
=============================================

Determine if UserAgent is incompatible with SameSite=None

1.0.1(5y ago)122.7M—3.8%5[1 issues](https://github.com/skorp/detect-incompatible-samesite-useragents/issues)[1 PRs](https://github.com/skorp/detect-incompatible-samesite-useragents/pulls)3MITPHPPHP ^7.0 || ^8.0CI failing

Since Jan 28Pushed 3y ago1 watchersCompare

[ Source](https://github.com/skorp/detect-incompatible-samesite-useragents)[ Packagist](https://packagist.org/packages/skorp/detect-incompatible-samesite-useragents)[ RSS](/packages/skorp-detect-incompatible-samesite-useragents/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (3)

Detect Incompatible SameSite Useragents
=======================================

[](#detect-incompatible-samesite-useragents)

This class tries to determine the incompatible UserAgents for SameSite=None Attribute.

[![](https://camo.githubusercontent.com/3cd59f16fb15832a21ecfd412c5682cf1c76084963af0899259c0337e7018baf/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f736b6f72702f6465746563742d696e636f6d70617469626c652d73616d65736974652d757365726167656e7473)](https://github.com/skorp/laravel-samesite-incompatible-clients/blob/master/LICENSE)[![Laravel](https://github.com/skorp/detect-incompatible-samesite-useragents/workflows/tests/badge.svg)](https://github.com/skorp/detect-incompatible-samesite-useragents/workflows/tests/badge.svg)

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

[](#installation)

You can install this package via composer using this command:

```
composer require "skorp/detect-incompatible-samesite-useragents"
```

Usage
-----

[](#usage)

```
use Skorp\Dissua\SameSite;

$shouldSendSameSiteNone = SameSite::handle('Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130');
if(!$shouldSendSameSiteNone) {
    //remove samesite attribute

}
```

ported from :

#### Links about SameSite Cookie:

[](#links-about-samesite-cookie)

Your feedback is welcome.

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity50

Moderate usage in the ecosystem

Community17

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 90% 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 ~256 days

Total

3

Last Release

1834d ago

Major Versions

0.0.1 → 1.0.02020-01-29

PHP version history (2 changes)0.0.1PHP ^7.0

1.0.1PHP ^7.0 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/2ffeb4c00adb61cfa034c035d8fa14a419957f148e1d4ec076114ce53d173e27?d=identicon)[skorp](/maintainers/skorp)

---

Top Contributors

[![skorp](https://avatars.githubusercontent.com/u/60728?v=4)](https://github.com/skorp "skorp (9 commits)")[![Nutickets](https://avatars.githubusercontent.com/u/57409655?v=4)](https://github.com/Nutickets "Nutickets (1 commits)")

---

Tags

cookiessamesitesafarisamesite cookie

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/skorp-detect-incompatible-samesite-useragents/health.svg)

```
[![Health](https://phpackages.com/badges/skorp-detect-incompatible-samesite-useragents/health.svg)](https://phpackages.com/packages/skorp-detect-incompatible-samesite-useragents)
```

###  Alternatives

[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k18.7M143](/packages/mews-purifier)[delight-im/cookie

Modern cookie management for PHP

1681.3M15](/packages/delight-im-cookie)[selective/samesite-cookie

Secure your site with SameSite cookies

10145.9k](/packages/selective-samesite-cookie)[jfeltkamp/cookiesjsr

COOKiES JSR is a consent management tool and provides UI and API to manage 3rd party services within the GDPR.

27878.6k](/packages/jfeltkamp-cookiesjsr)[paragonie/cookie

Modern cookie management for PHP 7

5757.2k2](/packages/paragonie-cookie)[paragonie/ecc

PHP Elliptic Curve Cryptography library

24820.0k37](/packages/paragonie-ecc)

PHPackages © 2026

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