How to resolve CLI setup error in PHP for app development?

Solved

How to resolve CLI setup error in PHP for app development?

RobinKaith
Shopify Partner
27 2 2

Issue summary

I am a Shopify app developer and working on build a Shopify app in PHP. I have used this Shopify CLI Github setup to develop an app. But this setup has an a issue of the (Unable to install all 15 dependencies). The composer.lock file of this setup is not up to date with the changes in the composer.json file (see the image).

 

image-6-.png

 

I have also run the composer update but the things going same. Also, the setup is successfully cloning in the local system and create an app on the partner account. But this setup has not successfully due to error. So, that is why the app is not installing on the store.

 

Composer Version: 2.2.6
PHP Version: 8.1.2
Operation Systme: Windows

Expected behavior

Make a video, how to use this setup to develop the app in PHP.

 

Hope the Shopify Developer Team look into this and resolve this as soon as possible.

Accepted Solution (1)

SB_90
Shopify Partner
216 52 70

This is an accepted solution.

Hi @RobinKaith 

 

Another user @Dixor had this problem just the other day and had a resolution here:

 

https://community.shopify.com/c/shopify-apps/cli-gt-shopify-app-create-php-gt-failed-to-install-comp...

 

Turns out his issue was the space in the directory path.

 

Try renaming the folder "Local Php" to "local_php" and try again?

View solution in original post

Replies 3 (3)

SB_90
Shopify Partner
216 52 70

This is an accepted solution.

Hi @RobinKaith 

 

Another user @Dixor had this problem just the other day and had a resolution here:

 

https://community.shopify.com/c/shopify-apps/cli-gt-shopify-app-create-php-gt-failed-to-install-comp...

 

Turns out his issue was the space in the directory path.

 

Try renaming the folder "Local Php" to "local_php" and try again?

RobinKaith
Shopify Partner
27 2 2

Thanks for sorting out this. It is working now.

rushikesh93
Excursionist
78 1 6

Hello @RobinKaith 

Shopify Beginner.