yii 2 star rating issue

i want to use star rating in my form and for that i am using yii2-widget-rating widget but when i tries to install it, it shows error like ’ installation failed, deleting ./composer.json.’. Anyone having any idea about this??

install by composer.json

like your folder name demowebsite than it should be like

copy that require string in composer.json

    "require": {

        "php": ">=5.4.0", 

        "yiisoft/yii2": "*", 

        "yiisoft/yii2-bootstrap": "*",

       "kartik-v/yii2-widget-rating": "*"

than in cmd run composer by below command.

D:xampp/htdocs/demowebsite/composer update

it works.