Download the PHP package mitsuki/cors without Composer
On this page you can find all versions of the php package mitsuki/cors. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Vendor mitsuki
Package cors
Short Description Official CORS listener for the Mitsuki PHP framework with IP whitelisting support
License MIT
Package cors
Short Description Official CORS listener for the Mitsuki PHP framework with IP whitelisting support
License MIT
Please rate this library. Is it a good library?
Informations about the package cors
Mitsuki CORS Listener
Official CORS listener for the Mitsuki PHP framework with configurable IP whitelisting support. Production-ready for secure REST APIs, microservices, and mobile backends.
โจ Features
- Standard CORS headers support (Origin, Methods, Headers, Credentials, Max-Age)
- Configurable IP whitelisting via
.env(exact IPs + CIDR ranges:192.168.1.0/24) - Main request only (
isMainRequest()validation) - Symfony
kernel.responseevent listener - Production-ready CIDR validation (
ip2long+ subnet mask) - Zero runtime dependencies beyond core Mitsuki contracts
๐ฆ Installation
Production Requirements:
- PHP
^8.1 mitsuki/listener-contracts:^1.0
Development Dependencies:
mitsuki/http:^1.0(unit tests only)pestphp/pest:^4.4(testing)
๐ Usage Examples
Development (Allow All)
Production Security
Generated Response Headers
๐งช Testing
Test Coverage:
- Main vs sub-request handling
- Exact IP matching (
127.0.0.1) - CIDR range validation (
192.168.1.55โ192.168.1.0/24) - Fallback behavior (empty config = allow all)
- Full CORS headers verification
๐๏ธ Architecture
๐ง Advanced Usage
IPv6 Support
Custom Headers/Methods
๐ฏ Perfect For
- REST APIs โ Flutter/React/Vue SPAs
- Microservices โ Docker/Kubernetes networking
- Secure deployments โ VPS/hosting providers
- JWT/OAuth2 โ API authentication flows
๐ Repository Structure
๐ License
MIT License ยฉ 2026 ZGenius Matondo
All versions of cors with dependencies
PHP Build Version
Package Version
The package mitsuki/cors contains the following files
Loading the files please wait ...