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 2025Releases
latest 12-
v1.4.003 Dec 2025Release notes
Open source →What's Changed
- Test PHP8.3 by @barryvdh in #20
- Test against php 8.4 by @sergiy-petrov in #30
- Check multiple Vary headers when existing by @barryvdh in #32
- Bump phpstan to 2.x and level up to 10 by @barryvdh in #33
- Test against php 8.5 by @sergiy-petrov in #36
- Allow Symfony v8 by @jnoordsij in #38
- Update to squizlabs/php_codesniffer v4 by @jnoordsij in #37
- Fix tests deprecation triggered on PHP 8.5 by @jnoordsij in #39
New Contributors
- @sergiy-petrov made their first contribution in #30
- @jnoordsij made their first contribution in #38
Full Changelog: v1.3.0...v1.4.0
-
v1.3.012 Oct 2023Release notes
Open source →What's Changed
- Test on 8.2 by @barryvdh in #14
- Add supports for Symfony 7 by @crynobone in #19
New Contributors
- @crynobone made their first contribution in #19
Full Changelog: v1.2.0...v1.3.0
Release notes
Open source →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
-
v1.2.020 Feb 2022Release notes
Open source →Changed
- Drop support for PHP 7.2/7.3 and legacy Symfony HttpFoundation versions.
- Used TypedProperties instead of manual validation
Release notes
Open source →Changed
- Drop support for PHP 7.2/7.3 and legacy Symfony HttpFoundation versions.
- Used TypedProperties instead of manual validation
-
v1.1.020 Feb 2022 -
v1.0.119 Feb 2022 -
v1.0.019 Feb 2022Release notes
Open source →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_originsandallowedOriginsare allowed) - Support wildcard patterns on AllowedOrigins (eg
https://*.example.comwill be converted to an allowedOriginPattern) - Validate input (so invalid options are caught immediately)
- Bump PHPStan to Level 9
- Ensure 100% Code Coverage
Release notes
Open source →Changed since split from asm89/stack-cors
- Renamed Asm89\Stack namespace to Fruitcake\Cors
- Removed HttpKernel middleware
New Features
- Allow underscore options (both
allowed_originsandallowedOriginsare allowed) - Support wildcard patterns on AllowedOrigins (eg
https://*.example.comwill be converted to an allowedOriginPattern) - Validate input (so invalid options are caught immediately)
- Bump PHPStan to Level 9
- Ensure 100% Code Coverage
-
v0.1.219 Feb 2022Nothing published for this version
-
v0.1.119 Feb 2022Release notes
Open source →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
-
v0.1.018 Feb 2022Nothing published for this version
-
v1.0-beta119 Feb 2022Nothing published for this version
-
v1.0-alpha219 Feb 2022Nothing published for this version
-
v1.0-alpha118 Feb 2022Nothing published for this version