cakephp / authentication

Authentication plugin for CakePHP. Can also be used in PSR7 based applications.
MIT License
115 stars 100 forks source link

zend-diactoros require php ^7.1 -> your php version (8.1.10) #597

Closed Asycreat closed 1 year ago

Asycreat commented 1 year ago
composer require "cakephp/authentication:^2.0"
The "2.0" constraint for "cakephp/authentication" appears too strict and will likely not match what you want. See https://getcomposer.org/constraints
Info from https://repo.packagist.org: #StandWithUkraine
./composer.json has been updated
Running composer update cakephp/authentication
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - zendframework/zend-diactoros[2.0.0, ..., 2.2.1] require php ^7.1 -> your php version (8.1.10) does not satisfy that requirement.
    - cakephp/authentication 2.0.0 requires zendframework/zend-diactoros ^2.0 -> satisfiable by zendframework/zend-diactoros[2.0.0, ..., 2.2.1].
    - Root composer.json requires cakephp/authentication 2.0 -> satisfiable by cakephp/authentication[2.0.0].

Installation failed, reverting ./composer.json and ./composer.lock to their original content.
dereuromark commented 1 year ago

You are using an outdated version https://github.com/cakephp/authentication/blob/2.x/composer.json#L14

Asycreat commented 1 year ago

You are using an outdated version https://github.com/cakephp/authentication/blob/2.x/composer.json#L14

ok, you have to use the command composer require cakephp/authentication instead of composer require "cakephp/authentication:^2.0" which is written in the docs https://book.cakephp.org/4/en/tutorials-and-examples/cms/authentication.html. thanks.

dereuromark commented 1 year ago

No, not necessarily, as both would install latest version if done without constraint issues (2.9.0). Closing then.