1

I am trying to install package library by composer in YII2. But after running the command from my command prompt I am getting following error

My composer command is

composer.phar require kartik-v/yii2-widget-datetimepicker "*"

Package yiisoft/yii2-codeception is abandoned, you should avoid using it. Use codeception/codeception instead.

When installing by this command

php composer.phar require kartik-v/yii2-social "@dev"

Then I am getting following error

Package facebook/php-sdk-v4 is abandoned, you should avoid using it. Use facebook/graph-sdk instead.

Generating autoload files

Please suggest me how can I resolve this error

Community
  • 1
  • 1
Akhilesh Jha
  • 51
  • 1
  • 1
  • 5

1 Answers1

1

This is not an error. This is just an information for you from composer that one of the required packages has been abandoned and you should not expect to get updates for it.

If you want to get rid of this information simply remove the mentioned packages from the composer.json file of your project. If the package is not listed there it means that one of the required packages listed needs it as dependency so you can not remove it directly.

As for the Yii 2 - here is the current advanced project template's composer.json so you can update the one in your project - package yiisoft/yii2-codeception is no longer used.

Bizley
  • 17,392
  • 5
  • 49
  • 59