asm89/stack-cors
Cross-origin resource sharing library and stack middleware. observed · 2026-08-28
Health v2 · maintenance only
61/100
- Activity 64
- Release rhythm 36
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 320
- age_days: 4768
- days_rel: 217
- days_push: 217
- n_releases_24m: 2
Adoption not part of the score
1276 stars · 61 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A PHP library and Stack middleware that implements the W3C CORS recommendation for http-foundation/http-kernel based applications. It can be used standalone as a CorsService or wrapped around an application as Stack middleware to handle preflight and actual CORS requests.
Use cases
- add CORS headers to a PHP HTTP application
- handle preflight OPTIONS requests
- allow cross-origin API access from browsers
- configure allowed origins, methods, and headers for CORS
- enable credentialed cross-origin requests
When to choose
- you run a Symfony, Laravel, or StackPHP-style PHP app needing CORS support
- you want a small, standards-compliant CORS implementation usable as library or middleware
When to avoid
- your framework already ships a maintained CORS package you prefer
- you are not using http-foundation/http-kernel based request/response objects
Facets
library · maturity stable
middleware http-server security web-development backend apis security php cors stackphp http-foundation http-kernel cross-origin
1 source
- readme: https://github.com/asm89/stack-cors · fetched 2026-08-28 · 4c7718fd7c19
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| asm89/stack-cors | main | 61 |
For agents
markdown · JSON · MCP: product_card(name="asm89/stack-cors")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem