Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 3 days 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 (over 3 years ago)
- Default Branch: 1.x.x
- Last Pushed: 2021-11-18T16:20:06.000Z (almost 3 years ago)
- Last Synced: 2024-07-30T20:05:22.370Z (4 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
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/antidot-framework/no-floc-middleware/badges/quality-score.png?b=1.x.x)](https://scrutinizer-ci.com/g/antidot-framework/no-floc-middleware/?branch=1.x.x)
[![Code Coverage](https://scrutinizer-ci.com/g/antidot-framework/no-floc-middleware/badges/coverage.png?b=1.x.x)](https://scrutinizer-ci.com/g/antidot-framework/no-floc-middleware/?branch=1.x.x)
[![Type Coverage](https://shepherd.dev/github/antidot-framework/no-floc-middleware/coverage.svg)](https://shepherd.dev/github/antidot-framework/no-floc-middleware)
[![Build Status](https://scrutinizer-ci.com/g/antidot-framework/no-floc-middleware/badges/build.png?b=1.x.x)](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);
};````