Mohammad Aghayari Mohammad Aghayari - 1 year ago 157
PHP Question

composer command does nothing

I work with yii2 in windows 10 by using xampp in my project, But composer command does nothing at all.

To understand more, I have to add this, that composer command works in every path exept one project.

my composer.json:

"name": "yiisoft/yii2-app-advanced",
"description": "Yii 2 Advanced Project Template",
"keywords": ["yii2", "framework", "advanced", "project template"],
"homepage": "",
"type": "project",
"license": "BSD-3-Clause",
"support": {
"issues": "",
"forum": "",
"wiki": "",
"irc": "irc://",
"source": ""
"minimum-stability": "stable",
"require": {
"php": ">=5.4.0",
"yiisoft/yii2": ">=2.0.6",
"yiisoft/yii2-bootstrap": "*",
"yiisoft/yii2-swiftmailer": "*",
"franciscomaya/yii2-sceditor": "dev-master",
"kartik-v/yii2-widget-sidenav": "*",
"mohammad-mahdy/yii2-jdate": "*",
"2amigos/yii2-ckeditor-widget" : "*",
"2amigos/yii2-gallery-widget": "~1.0",
"romka-chev/yii2-swiper" : "*",
"kartik-v/yii2-widgets": "*",
"kartik-v/yii2-grid": "@dev",
"yiisoft/yii2-imagine": "*",
"omnilight/yii2-shopping-cart": "*",
"fxp/composer-asset-plugin": "^1.0"
"require-dev": {
"yiisoft/yii2-codeception": "*",
"yiisoft/yii2-debug": "*",
"yiisoft/yii2-gii": "*",
"yiisoft/yii2-faker": "*"

"config": {
"process-timeout": 1800
"extra": {
"asset-installer-paths": {
"npm-asset-library": "vendor/npm",
"bower-asset-library": "vendor/bower"

For example I want to update composer by using
composer update
command, but in the result nothing happens.

do you know What's the problem?

enter image description here

This page didn't help me.

please help me to solve the problem.

Answer Source

Try this

Please remove composer.phar,composer2.phar and composer.bat from your project folder and try again.

Make sure you take a backup before doing this

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download