PHPackages                             spatie/laravel-disable-floc - 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. spatie/laravel-disable-floc

AbandonedArchivedLibrary[Security](/categories/security)

spatie/laravel-disable-floc
===========================

Automatically disable Google's floc in Laravel apps

1.0.2(4y ago)67122.1k—0%3MITPHPPHP ^7.3|^7.4|^8.0

Since May 5Pushed 3y ago2 watchersCompare

[ Source](https://github.com/spatie/laravel-disable-floc)[ Packagist](https://packagist.org/packages/spatie/laravel-disable-floc)[ Docs](https://github.com/spatie/laravel-disable-floc)[ GitHub Sponsors](https://github.com/spatie)[ RSS](/packages/spatie-laravel-disable-floc/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (3)Versions (6)Used By (0)

[![](https://camo.githubusercontent.com/2bedf63f24cda7efab02da955dc11fb7ef8a060e2f26b73c33a7aac84529b8a3/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f737570706f72742d756b7261696e652e7376673f743d31)](https://supportukrainenow.org)

Automatically disable Google's FLoC in Laravel apps
===================================================

[](#automatically-disable-googles-floc-in-laravel-apps)

[![Latest Version on Packagist](https://camo.githubusercontent.com/7bffc3270860a17a25dd5567180133adae6be91d2a097ab3e5ca8d3c53323028/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7370617469652f6c61726176656c2d64697361626c652d666c6f632e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spatie/laravel-disable-floc)[![run-tests](https://github.com/spatie/laravel-disable-floc/actions/workflows/run-tests.yml/badge.svg)](https://github.com/spatie/laravel-disable-floc/actions/workflows/run-tests.yml)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/a4386f7224c1649c77fd23cf92d95dc8290fe2bd9389df724c9a523a2c80567c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f7370617469652f6c61726176656c2d64697361626c652d666c6f632f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/spatie/laravel-disable-floc/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amaster)[![Total Downloads](https://camo.githubusercontent.com/260c1a72e98d8ceca4a134310fe3f6ff9e3232bceecadd7597d2a8fe5be08074/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7370617469652f6c61726176656c2d64697361626c652d666c6f632e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spatie/laravel-disable-floc)

This package will automatically disable [Google's FLoC](https://plausible.io/blog/google-floc).

Support us
----------

[](#support-us)

[![](https://camo.githubusercontent.com/f774c0d3b3e8edb4507e90ca7ae2bd5566eb42a5c220907c5501cf8cc9e3d53d/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f6c61726176656c2d64697361626c652d666c6f632e6a70673f743d31)](https://spatie.be/github-ad-click/laravel-disable-floc)

We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).

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

[](#installation)

You can install the package via composer:

```
composer require spatie/laravel-disable-floc
```

Usage
-----

[](#usage)

After you've installed the package via composer, you're done. There's no step two.

This package will automatically register the `DisableFloc` middleware in the web group. The middleware will add a header `Permissions-Policy` that will effectively disable FLoC. This header will be applied to all responses that have no `Permissions-Policy` header.

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details.

Security vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Freek Van der Herten](https://github.com/freekmurze)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity41

Moderate usage in the ecosystem

Community15

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 70.2% 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 ~68 days

Total

5

Last Release

1561d ago

Major Versions

0.0.2 → 1.0.02021-05-05

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7535935?v=4)[Spatie](/maintainers/spatie)[@spatie](https://github.com/spatie)

---

Top Contributors

[![freekmurze](https://avatars.githubusercontent.com/u/483853?v=4)](https://github.com/freekmurze "freekmurze (33 commits)")[![rubenvanassche](https://avatars.githubusercontent.com/u/619804?v=4)](https://github.com/rubenvanassche "rubenvanassche (7 commits)")[![AdrianMrn](https://avatars.githubusercontent.com/u/12762044?v=4)](https://github.com/AdrianMrn "AdrianMrn (4 commits)")[![felixdorn](https://avatars.githubusercontent.com/u/55788595?v=4)](https://github.com/felixdorn "felixdorn (2 commits)")[![abenerd](https://avatars.githubusercontent.com/u/7523903?v=4)](https://github.com/abenerd "abenerd (1 commits)")

---

Tags

spatielaravellaravel-disable-floc

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/spatie-laravel-disable-floc/health.svg)

```
[![Health](https://phpackages.com/badges/spatie-laravel-disable-floc/health.svg)](https://phpackages.com/packages/spatie-laravel-disable-floc)
```

###  Alternatives

[spatie/laravel-data

Create unified resources and data transfer objects

1.7k28.9M627](/packages/spatie-laravel-data)[spatie/laravel-csp

Add CSP headers to the responses of a Laravel app

8519.6M19](/packages/spatie-laravel-csp)[spatie/laravel-ciphersweet

Use ciphersweet in your Laravel project

416718.4k1](/packages/spatie-laravel-ciphersweet)[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)[spatie/laravel-slack-alerts

Send a message to Slack

3212.6M4](/packages/spatie-laravel-slack-alerts)[spatie/laravel-model-flags

Add flags to Eloquent models

4301.1M1](/packages/spatie-laravel-model-flags)

PHPackages © 2026

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