Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/chubbyphp/chubbyphp-cors

A minimal CORS middleware for PSR 15.
https://github.com/chubbyphp/chubbyphp-cors

chubbyphp-framework cors mezzio middleware psr-15 psr-7 slim-framework zend-expressive

Last synced: 3 months ago
JSON representation

A minimal CORS middleware for PSR 15.

Awesome Lists containing this project

README

        

# chubbyphp-cors

[![CI](https://github.com/chubbyphp/chubbyphp-cors/actions/workflows/ci.yml/badge.svg)](https://github.com/chubbyphp/chubbyphp-cors/actions/workflows/ci.yml)
[![Coverage Status](https://coveralls.io/repos/github/chubbyphp/chubbyphp-cors/badge.svg?branch=master)](https://coveralls.io/github/chubbyphp/chubbyphp-cors?branch=master)
[![Mutation testing badge](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fchubbyphp%2Fchubbyphp-cors%2Fmaster)](https://dashboard.stryker-mutator.io/reports/github.com/chubbyphp/chubbyphp-cors/master)
[![Latest Stable Version](https://poser.pugx.org/chubbyphp/chubbyphp-cors/v)](https://packagist.org/packages/chubbyphp/chubbyphp-cors)
[![Total Downloads](https://poser.pugx.org/chubbyphp/chubbyphp-cors/downloads)](https://packagist.org/packages/chubbyphp/chubbyphp-cors)
[![Monthly Downloads](https://poser.pugx.org/chubbyphp/chubbyphp-cors/d/monthly)](https://packagist.org/packages/chubbyphp/chubbyphp-cors)

[![bugs](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-cors&metric=bugs)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-cors)
[![code_smells](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-cors&metric=code_smells)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-cors)
[![coverage](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-cors&metric=coverage)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-cors)
[![duplicated_lines_density](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-cors&metric=duplicated_lines_density)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-cors)
[![ncloc](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-cors&metric=ncloc)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-cors)
[![sqale_rating](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-cors&metric=sqale_rating)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-cors)
[![alert_status](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-cors&metric=alert_status)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-cors)
[![reliability_rating](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-cors&metric=reliability_rating)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-cors)
[![security_rating](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-cors&metric=security_rating)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-cors)
[![sqale_index](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-cors&metric=sqale_index)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-cors)
[![vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-cors&metric=vulnerabilities)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-cors)

## Description

A minimal CORS middleware for PSR 15.

## Requirements

* php: ^8.1
* [psr/http-factory][2]: ^1.0.2
* [psr/http-message][3]: ^1.1|^2.0
* [psr/http-server-middleware][4]: ^1.0.2

## Installation

Through [Composer](http://getcomposer.org) as [chubbyphp/chubbyphp-cors][1].

```sh
composer require chubbyphp/chubbyphp-cors "^1.5"
```

## Usage

* [Chubbyphp Framework][10]
* [Mezzio][11]
* [Slim 3][12]
* [Slim 4][13]

## Copyright

2024 Dominik Zogg

[1]: https://packagist.org/packages/chubbyphp/chubbyphp-cors

[2]: https://packagist.org/packages/psr/http-factory
[3]: https://packagist.org/packages/psr/http-message
[4]: https://packagist.org/packages/psr/http-server-middleware

[10]: doc/ChubbyphpFramework.md
[11]: doc/Mezzio.md
[12]: doc/Slim3.md
[13]: doc/Slim4.md