App Template composer.json conflict

I’m trying to install GitHub - yiisoft/app: Yii3 application template and get this:

C:\osp6\home>composer create-project --stability=dev yiisoft/app myproject
Creating a “yiisoft/app” project at “./myproject”
Installing yiisoft/app (1.0.x-dev 855d89d20511cfc18eade48c9ef0bc1fd543505f)
- Installing yiisoft/app (dev-master 855d89d): Extracting archive
Created project in C:\osp6\home\myproject
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

Problem 1
- Root composer.json requires yiisoft/yii-gii dev-master → satisfiable by yiisoft/yii-gii[dev-master].
- yiisoft/yii-gii dev-master requires yiisoft/yii-middleware dev-master → found yiisoft/yii-middleware[dev-master] but it conflicts with your root composer.json require (^1.0).

I’ve done something wrong?

if you remove Gii, does it install?

1 Like

Hi,
I have same problem.

Removed Gii from composer.json
“composer update” completed without errors.
Thanks

As I understand, release of Gii will solve this problem

2 Likes

thanks for your help,
I removed 3 row from composer.jso

“yiisoft/yii-gii”: “dev-master”
“roave/infection-static-analysis-plugin”: “^1.34”
“vimeo/psalm”: “^5.20”

next I run composer udpate.
And now it’s fine.

Why did you remove the other two?

Yes it will.

Hi, I also removed the 2 lines because I couldn’t move on

1 Like

So, I just tried this out of curiosity (I am not yet using Yii3). I got similar errors to @marcoto except for yii-gii. My default php -v is 8.4.5 so I decided to re-run the cmd using php8.3 and got some errors in packages like yii-view and yii-debug.
I then re-run the cmd 1 more time using php8.2 and everything went smoothly.

I checked the Requirements section in README and it says PHP 8.1 or higher. May be a note could added for the time being saying “Tested (or Works) up to 8.2

I hope it helps.

We’re updating packages right now. Should be either already OK or will be OK soon.

2 Likes