Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Php Cors Laravel Package

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.

View on GitHub
Deep Wiki
Context7
1.2.0

Changed

  • Drop support for PHP 7.2/7.3 and legacy Symfony HttpFoundation versions.
  • Used TypedProperties instead of manual validation
1.1.0

Added

  • setOptions() method to overwrite or set the options later.
1.0.0

Changed since split from asm89/stack-cors

  • Renamed Asm89\Stack namespace to Fruitcake\Cors
  • Removed HttpKernel middleware

New Features

  • Allow underscore options (both allowed_origins and allowedOrigins are allowed)
  • Support wildcard patterns on AllowedOrigins (eg https://*.example.com will be converted to an allowedOriginPattern)
  • Validate input (so invalid options are caught immediately)
  • Bump PHPStan to Level 9
  • Ensure 100% Code Coverage
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport
twbs/bootstrap4
php-http/client-implementation
phpcr/phpcr-implementation
cucumber/gherkin-monorepo
haydenpierce/class-finder
psr/simple-cache-implementation