fruitcake/php-cors
Standalone PHP CORS library and Symfony HttpFoundation middleware implementing the W3C CORS spec. Configure allowed origins, methods, headers, exposed headers, and max-age; supports regex origin patterns. Used by Stack and Laravel integrations.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| fruitcake/laravel-cors | 0.88 | Laravel middleware to handle Cross-Origin Resource Sharing (CORS). Configure allowed origins, methods, headers, credentials, and exposed headers via a config file. Adds proper CORS response headers and supports preflight OPTIONS requests for APIs and SPAs. | 6,238 | 6,235 | 606 | 762K | 37 | 30.0 | 28.0 | MIT | 4 years ago | |
| coka/cors-bundle | 0.86 | — | 1 | 2 | 1 | 33 | 0 | 0.0 | 17.2 | MIT | — | |
| barryvdh/laravel-cors | 0.86 | — | 6,238 | 6,301 | 606 | 108K | 37 | 30.0 | 20.4 | MIT | 4 years ago | |
| nelmio/cors-bundle | 0.85 | — | 1,926 | 1,942 | 105 | 2M | 8 | 33.0 | 47.4 | MIT | 6 months ago | |
| spatie/laravel-cors | 0.84 | Adds configurable CORS support to Laravel/Lumen: sets CORS headers on responses, handles preflight requests, and lets you define allowed origins, methods, headers, and credentials via middleware and config. Abandoned since Laravel 7+ has native CORS support. | 597 | 613 | 57 | 3K | 0 | 6.2 | 7.6 | MIT | 5 years ago | |
| benkle/auto-preflight-bundle | 0.83 | — | 0 | 0 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| async-aws/cloud-front | 0.80 | AsyncAws CloudFront Client is a lightweight PHP API client for AWS CloudFront. Install via Composer and use AsyncAws to create and manage CloudFront resources with typed requests and responses. Documentation and contribution guides available at async-aws.com. | 1 | 1 | 0 | 5K | 0 | 13.5 | 51.6 | MIT | 6 months ago | |
| symfony/http-foundation | 0.80 | Symfony HttpFoundation provides an object-oriented API for HTTP: requests, responses, headers, cookies, sessions, and file uploads. It normalizes PHP’s globals into consistent objects, making it easier to build and test web applications and middleware. | 8,630 | 8,707 | 307 | 16M | 0 | 65.8 | 52.8 | MIT | 3 weeks ago | |
| loophp/unaltered-psr-http-message-bridge-bundle | 0.70 | Symfony bundle bridging PSR-7 HTTP messages without altering them. Converts between PSR-7 requests/responses and Symfony HttpFoundation safely, preserving headers, body streams, and URIs—useful when integrating PSR-7 middleware or clients in Symfony apps. | 5 | 5 | 1 | 67 | 1 | 2.7 | 15.0 | MIT | 4 years ago | |
| amphp/http | 0.69 | Event-driven HTTP primitives for PHP 8.1+ in the AMPHP ecosystem. Provides shared building blocks for HTTP clients and servers, including IANA status codes with default reasons, RFC 6265 cookie parsing/creation (Set-Cookie/Cookie), and header utilities. | 103 | 103 | 10 | 973K | 1 | 8.0 | 55.2 | MIT | 1 year ago | |
| rmccue/requests | 0.69 | Requests is a human-friendly PHP HTTP client for sending GET/POST/PUT/DELETE/PATCH/HEAD requests with headers, auth, files, and parameters. Supports cURL or fsockopen, SSL verification, decompression, and IDN URLs with a consistent API. | 3,578 | 3,652 | 503 | 837K | 95 | 76.0 | 64.1 | NOASSERTION | 2 months ago | |
| sabre/http | 0.69 | sabre/http wraps PHP’s HTTP superglobals and output functions into easy-to-mock Request and Response objects. Use it to read input, headers, and body via a consistent API, and to generate responses cleanly in apps and libraries. | 190 | 197 | 61 | 339K | 3 | 31.1 | 53.4 | BSD-3-Clause | 1 month ago | |
| loophp/psr17 | 0.69 | loophp/psr17 provides a PSR-17 HTTP message factory implementation for PHP, helping you create PSR-7 requests, responses, streams, URIs, and uploaded files in a standards-compliant way. Suitable for libraries and middleware needing PSR factories. | 1 | 1 | 0 | 6K | 1 | 3.5 | 52.7 | MIT | 3 years ago | |
| neomerx/limoncello | 0.67 | Integration layer between neomerx/json-api and Symfony-based apps, used by Limoncello quick-start projects (Laravel Limoncello Collins and Lumen Limoncello Shot). Provides JSON:API wiring and conventions; see the wiki for setup and usage. | 18 | 19 | 9 | 2K | 1 | 3.8 | 28.7 | Apache-2.0 | 10 years ago | |
| nategood/httpful | 0.66 | Chainable PHP HTTP client for making REST requests with minimal boilerplate. Supports JSON/XML parsing, automatic serialization, custom headers, auth, redirects, and file uploads. Includes helpful debugging and response wrappers for quick API integrations. | 1,780 | 1,816 | 299 | 144K | 75 | 36.7 | 51.2 | MIT | — | |
| knplabs/github-api | 0.66 | Lightweight, well-tested PHP wrapper for GitHub APIs v3 (REST) and v4 (GraphQL). PSR-17/PSR-18 compatible via HTTPlug, with easy setup using Guzzle, Symfony HttpClient, or other PSR clients. Supports framework integrations (Laravel via graham-campbell/github). | 2,204 | 2,232 | 588 | 412K | 39 | 48.0 | 48.2 | MIT | 1 year ago | |
| lchrusciel/api-test-case | 0.65 | PHPUnit TestCase for Symfony API development. Extends WebTestCase with easy JSON/XML response matching (via php-matcher) and optional Alice/Doctrine fixtures loading. Supports a clear TDD workflow using expected response files and helpful diffs. | 412 | 412 | 41 | 103K | 11 | 32.7 | 44.4 | MIT | 1 month ago | |
| amashukov/http-client-php | 0.65 | — | 0 | 0 | 0 | 118 | 0 | 0.0 | 28.7 | MIT | — | |
| psr-mock/http-message-implementation | 0.65 | Lightweight PSR-7 HTTP message implementation mock for testing libraries and SDKs without hard dependencies. Strictly follows PSR behavior and includes a developer-friendly API to debug and fix failing tests faster. For dev use only (PHP 8.1+). | 0 | 0 | 1 | 3K | 0 | 0.6 | 48.0 | MIT | 2 years ago | |
| donatj/mock-webserver | 0.65 | Lightweight PHP mock web server for tests and local development. Spin up an HTTP server on a random port, enqueue canned responses, inspect received requests, and simulate endpoints reliably. Handy for integration tests without external services. | 139 | 140 | 22 | 55K | 5 | 23.8 | 42.1 | MIT | 5 months ago |
How can I help you explore Laravel packages today?