Skip to content

snicco/share-cookies-middleware

Repository files navigation

Middleware for snicco/http-routing to transform cookies to response headers

codecov Psalm Type-Coverage Psalm level PhpMetrics - Static Analysis PHP-Versions

Installation

composer require snicco/share-cookies-middleware

Usage

This middleware should be added (in a group) to all routes where cookies should be sent to the client.

This middleware will transform all Cookies that were added to the response object to an appropriate HTTP-header.

There are no configuration options.

use Snicco\Middleware\ShareCookies\ShareCookies;

$configurator->get('route1', '/route1', SomeController::class)
             ->middleware(ShareCookies::class);

Contributing

This repository is a read-only split of the development repo of the Snicco project.

This is how you can contribute.

Reporting issues and sending pull requests

Please report issues in the Snicco monorepo.

Security

If you discover a security vulnerability, please follow our disclosure procedure.

About

[READ ONLY] Subtree split of the snicco/share-cookies-middleware package (see snicco/snicco).

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages