PHPackages                             nhymxu/php-floc-disable - 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. nhymxu/php-floc-disable

ActiveLibrary[Security](/categories/security)

nhymxu/php-floc-disable
=======================

PHP middleware to disable Google's Federated Learning of Cohorts (FLoC) tracking

v1.1.0(4y ago)0102MITPHPPHP ^7.3 || ^8.0

Since May 11Pushed 4y ago1 watchersCompare

[ Source](https://github.com/nhymxu/php-floc-disable)[ Packagist](https://packagist.org/packages/nhymxu/php-floc-disable)[ Docs](https://github.com/nhymxu/php-floc-disable)[ Fund](https://nhantien.momo.vn/WTOl9cURX5P)[ Fund](https://www.paypal.me/nhymxu)[ RSS](/packages/nhymxu-php-floc-disable/feed)WikiDiscussions main Synced 4w ago

READMEChangelog (2)Dependencies (4)Versions (3)Used By (0)

nhymxu/php-floc-disable
=======================

[](#nhymxuphp-floc-disable)

[![packagist](https://camo.githubusercontent.com/3d59bf5a169c29880d3b9d3f564bcaaf9d6c083a9dab2d629e536591b1ace6f2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e68796d78752f7068702d666c6f632d64697361626c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nhymxu/php-floc-disable)[![phpunit](https://github.com/nhymxu/php-floc-disable/actions/workflows/phpunit.yml/badge.svg?branch=main)](https://github.com/nhymxu/php-floc-disable/actions/workflows/phpunit.yml)

PHP middleware to disable Google's Federated Learning of Cohorts (`FLoC`) tracking

Usage
-----

[](#usage)

This package is installable and auto-loadable via Composer as nhymxu/php-floc-disable.

```
composer require nhymxu/php-floc-disable
```

### Slim 4 integration

[](#slim-4-integration)

Add the `FlocDisableMiddleware` to set the header

Example: `public/index.php`

```
