PackageTrack
Sign in Get early access

fruitcake/php-cors

Cross-origin resource sharing library for the Symfony HttpFoundation

v1.4.0 295M downloads/mo #110 most downloaded on composer fruitcake/php-cors

What this package is like to depend on

Last release 8 months ago

03 Dec 2025

Ships on a steady schedule

a new release about every 1.9 years

Some releases are documented

notes for 7 of 12 stable releases

Nothing withdrawn

no release was ever pulled

5 years old

12 releases · first in 2022

1 release in the last 12 months

see the full history below

Release timeline

12 releases · Feb 2022 to Dec 2025
2023 2024 2025 2026
Release Pre-release

Releases

latest 12
  1. v1.4.0 03 Dec 2025
    Release notes

    What's Changed

    New Contributors

    Full Changelog: v1.3.0...v1.4.0

    Open source →
  2. v1.3.0 12 Oct 2023
    Release notes

    What's Changed

    New Contributors

    Full Changelog: v1.2.0...v1.3.0

    Open source →
    Release notes

    Added

    • Test on 8.2 by @barryvdh in https://github.com/fruitcake/php-cors/pull/14
    • Add supports for Symfony 7 by @crynobone in https://github.com/fruitcake/php-cors/pull/19
    Open source →
  3. v1.2.0 20 Feb 2022
    Release notes

    Changed

    • Drop support for PHP 7.2/7.3 and legacy Symfony HttpFoundation versions.
    • Used TypedProperties instead of manual validation
    Open source →
    Release notes

    Changed

    • Drop support for PHP 7.2/7.3 and legacy Symfony HttpFoundation versions.
    • Used TypedProperties instead of manual validation
    Open source →
  4. v1.1.0 20 Feb 2022
    Release notes

    Added

    • setOptions() method to overwrite or set the options later.
    Open source →
    Release notes

    Added

    • setOptions() method to overwrite or set the options later.
    Open source →
  5. v1.0.1 19 Feb 2022
    Release notes
    • Refactor internal options for readability
    Open source →
  6. v1.0.0 19 Feb 2022
    Release notes

    Version 1.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
    Open source →
    Release notes

    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
    Open source →
  7. v0.1.2 19 Feb 2022

    Nothing published for this version

  8. v0.1.1 19 Feb 2022
    Release notes

    Phpstan level7 (#2)

    * Simplify array structure

    * Remove array merges in favor of explicit options

    * Split allowAll options

    * Tweak array type

    * Revert "Tweak array type"

    This reverts commit 4738baf.

    * Add explicit cast

    * Skip check on lowest symfony 4

    * Skip check on lowest symfony 4

    * Skip check on lowest symfony 4

    * SKip

    * SKip

    Open source →
  9. v0.1.0 18 Feb 2022

    Nothing published for this version

  10. v1.0-beta1 19 Feb 2022

    Nothing published for this version

  11. v1.0-alpha2 19 Feb 2022

    Nothing published for this version

  12. v1.0-alpha1 18 Feb 2022

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive