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

https://github.com/phpnexus/cors-psr7

Provides CORS middleware for PSR-7 compatible frameworks
https://github.com/phpnexus/cors-psr7

Last synced: about 1 month ago
JSON representation

Provides CORS middleware for PSR-7 compatible frameworks

Awesome Lists containing this project

README

          

# CORS-PSR7

[![Latest Version](http://img.shields.io/packagist/v/phpnexus/cors-psr7.svg?style=flat-square)](https://github.com/phpnexus/cors-psr7/releases)
[![Software License](https://img.shields.io/badge/license-Apache_2.0-brightgreen.svg?style=flat-square)](LICENSE.md)

Provides CORS middleware for PSR-7 and PSR-15 compatible frameworks.

## Installation

It's recommended that you use [Composer](https://getcomposer.org/) to install CORS-PSR7:

```bash
$ composer require phpnexus/cors-psr7
```

This package requires PHP 8.1 or newer.

## Usage

TODO

## Configuration

Please see [`phpnexus\cors`](https://github.com/phpnexus/cors) documentation for configuration options.

## Versioning

The packages adheres to the [SemVer](http://semver.org/) specification, and there will be full backward compatibility between minor versions.

## Contributing

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

## License

This package is released under the Apache 2.0 License. See the bundled [LICENSE](https://github.com/phpnexus/cors/blob/master/LICENSE) file for details.