odan / slim4-skeleton

A Slim 4 Skeleton
https://odan.github.io/slim4-skeleton/
MIT License
449 stars 80 forks source link

Cannot install csfr without using downgrade #130

Closed matejik closed 4 months ago

matejik commented 5 months ago

Hi, following the instructions I tried to install csrf(composer require slim/csrf) with the error below. Downgrade required again

Problem 1

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions. You can also try re-running composer require with an explicit version constraint, e.g. "composer require slim/csrf:*" to figure out if any version is installable, or "composer require slim/csrf:^2.1" if you know which you need.

odan commented 5 months ago

The latest version of the slim/csrf package supports only psr/http-message v1.0.

https://github.com/slimphp/Slim-Csrf/blob/1.4.0/composer.json#L21

I will try to create a PR to fix that.

odan commented 5 months ago

It should work now. Please try it again using the latest version.

https://github.com/slimphp/Slim-Csrf/releases/tag/1.5.0