phpnexus / cors-psr7
Provides a lightweight CORS middleware for PSR-7 and PSR-15 compatible frameworks.
0.2.4
2023-05-02 09:31 UTC
Requires
- php: ^7.4|^8.1
- phpnexus/cors: ^0.3.0
- psr/http-message: ^1.0
- psr/http-server-handler: ^1.0
- psr/http-server-middleware: ^1.0
Requires (Dev)
- laminas/laminas-diactoros: ^2.4
- phpunit/phpunit: ^9.5
README
Provides CORS middleware for PSR-7 and PSR-15 compatible frameworks.
Installation
It's recommended that you use Composer to install CORS-PSR7:
$ composer require phpnexus/cors-psr7
This package requires PHP 7.4 or 8.1.
Usage
TODO
Configuration
Please see phpnexus\cors
documentation for configuration options.
Versioning
The packages adheres to the SemVer specification, and there will be full backward compatibility between minor versions.
Contributing
Please see CONTRIBUTING for details.
License
This package is released under the Apache 2.0 License. See the bundled LICENSE file for details.