https://github.com/antidot-framework/no-floc-middleware
PSR-15 middleware to opting your Website out of Google's FLoC Network
https://github.com/antidot-framework/no-floc-middleware
hacktoberfest middleware psr-15
Last synced: 4 months ago
JSON representation
PSR-15 middleware to opting your Website out of Google's FLoC Network
- Host: GitHub
- URL: https://github.com/antidot-framework/no-floc-middleware
- Owner: antidot-framework
- License: bsd-2-clause
- Created: 2021-04-22T20:55:18.000Z (about 4 years ago)
- Default Branch: 1.x.x
- Last Pushed: 2021-11-18T16:20:06.000Z (over 3 years ago)
- Last Synced: 2025-01-06T07:23:19.184Z (6 months ago)
- Topics: hacktoberfest, middleware, psr-15
- Language: PHP
- Homepage: https://antidotfw.io/
- Size: 26.4 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Antidot NO FLoC Middleware
[](https://scrutinizer-ci.com/g/antidot-framework/no-floc-middleware/?branch=1.x.x)
[](https://scrutinizer-ci.com/g/antidot-framework/no-floc-middleware/?branch=1.x.x)
[](https://shepherd.dev/github/antidot-framework/no-floc-middleware)
[](https://scrutinizer-ci.com/g/antidot-framework/no-floc-middleware/build-status/1.x.x)PSR-15 middleware to opting your Website out of Google's FLoC Network
## Installation
Using [composer](https://getcomposer.org/download/)
````
composer require antidot-fw/no-floc-middleware
````### Using [Laminas config Aggregator](https://docs.laminas.dev/laminas-config-aggregator/)
it install the library automatically
## Usage
In Antidot, Mezzio or any other PSR-15 middleware application, add it to the global pipeline.
````php
pipe(NoFLoCMiddleware::class)
$app->pipe(ErrorMiddleware::class);
$app->pipe(ExceptionLoggerMiddleware::class);
$app->pipe(RequestLoggerMiddleware::class);
$app->pipe(RouteDispatcherMiddleware::class);
$app->pipe(RouteNotFoundMiddleware::class);
};````