Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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);
};

````