Issue with composer upgrading to 2.0.10; suggestions and abandoned packages

Hello. I’ve upgraded to 2.0.10:




javier@comunidad:/var/www/html/yii2-advanced$ php /usr/local/bin/composer update

Loading composer repositories with package information

Updating dependencies (including require-dev)

  - Removing yiisoft/yii2 (2.0.9)

  - Installing yiisoft/yii2 (2.0.10)

    Loading from cache


  - Removing psr/log (1.0.1)

  - Installing psr/log (1.0.2)

    Downloading: 100%


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

Writing lock file

Generating autoload files



So, i’ve removed




"require-dev": {

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


and replaced by


"require-dev": {

		"codeception/codeception": "*",




Then updated again:




javier@comunidad:/var/www/html/yii2-advanced$ php /usr/local/bin/composer update

Loading composer repositories with package information

Updating dependencies (including require-dev)

  - Removing yiisoft/yii2-codeception (2.0.5)

  - Installing videlalvaro/php-amqplib (v2.0.2)

    Downloading: 100%


  - Installing symfony/yaml (v3.1.5)

    Downloading: 100%


  - Installing symfony/finder (v2.1.13)

    Downloading: 100%


  - Installing symfony/event-dispatcher (v3.1.5)

    Downloading: 100%


  - Installing symfony/debug (v3.1.5)

    Downloading: 100%


  - Installing symfony/polyfill-mbstring (v1.2.0)

    Downloading: 100%


  - Installing symfony/console (v3.1.5)

    Downloading: 100%


  - Installing monolog/monolog (1.21.0)

    Downloading: 100%


  - Installing eher/phpunit (1.6)

    Downloading: 100%


  - Installing symfony/process (v2.1.13)

    Downloading: 100%


  - Installing symfony/css-selector (v2.1.13)

    Downloading: 100%


  - Installing behat/mink (v1.4.0)

    Downloading: 100%


  - Installing behat/mink-zombie-driver (v1.0.2)

    Downloading: 100%


  - Installing instaclick/php-webdriver (1.0.12)

    Downloading: 100%


  - Installing behat/mink-selenium2-driver (v1.0.4)

    Downloading: 100%


  - Installing symfony/dom-crawler (v2.1.13)

    Downloading: 100%


  - Installing alexandresalome/php-selenium (v1.1.0)

    Downloading: 100%


  - Installing behat/mink-selenium-driver (v1.0.4)

    Downloading: 100%


  - Installing guzzlehttp/promises (1.2.0)

    Downloading: 100%


  - Installing psr/http-message (1.0.1)

    Downloading: 100%


  - Installing guzzlehttp/psr7 (1.3.1)

    Downloading: 100%


  - Installing guzzlehttp/guzzle (6.2.2)

    Downloading: 100%


  - Installing symfony/browser-kit (v2.1.13)

    Downloading: 100%


  - Installing fabpot/goutte (v3.1.2)

    Downloading: 100%


  - Installing behat/mink-browserkit-driver (v1.0.3)

    Downloading: 100%


  - Installing behat/mink-goutte-driver (v1.0.3)

    Downloading: 100%


  - Installing codeception/codeception (1.1.4)

    Downloading: 100%


symfony/event-dispatcher suggests installing symfony/dependency-injection ()

symfony/event-dispatcher suggests installing symfony/http-kernel ()


monolog/monolog suggests installing aws/aws-sdk-php (Allow sending log messages to AWS services like DynamoDB)

monolog/monolog suggests installing doctrine/couchdb (Allow sending log messages to a CouchDB server)

monolog/monolog suggests installing ext-amqp (Allow sending log messages to an AMQP server (1.0+ required))

monolog/monolog suggests installing ext-mongo (Allow sending log messages to a MongoDB server)

monolog/monolog suggests installing graylog2/gelf-php (Allow sending log messages to a GrayLog2 server)

monolog/monolog suggests installing mongodb/mongodb (Allow sending log messages to a MongoDB server via PHP Driver)

monolog/monolog suggests installing php-amqplib/php-amqplib (Allow sending log messages to an AMQP server using php-amqplib)

monolog/monolog suggests installing php-console/php-console (Allow sending log messages to Google Chrome)

monolog/monolog suggests installing rollbar/rollbar (Allow sending log messages to Rollbar)

monolog/monolog suggests installing ruflin/elastica (Allow sending log messages to an Elastic Search server)

monolog/monolog suggests installing sentry/sentry (Allow sending log messages to a Sentry server)

behat/mink suggests installing behat/mink-sahi-driver (to enable Sahi.JS support)


Package videlalvaro/php-amqplib is abandoned, you should avoid using it. Use php-amqplib/php-amqplib instead.

Package alexandresalome/php-selenium is abandoned, you should avoid using it. Use facebook/webdriver instead.

Package behat/mink-selenium-driver is abandoned, you should avoid using it. Use behat/mink-selenium2-driver instead.


Writing lock file

Generating autoload files



So… how do I install all the suggestions:




monolog/monolog suggests installing aws/aws-sdk-php (Allow sending log messages to AWS services like DynamoDB)

monolog/monolog suggests installing doctrine/couchdb (Allow sending log messages to a CouchDB server)

monolog/monolog suggests installing ext-amqp (Allow sending log messages to an AMQP server (1.0+ required))

monolog/monolog suggests installing ext-mongo (Allow sending log messages to a MongoDB server)

monolog/monolog suggests installing graylog2/gelf-php (Allow sending log messages to a GrayLog2 server)

monolog/monolog suggests installing mongodb/mongodb (Allow sending log messages to a MongoDB server via PHP Driver)

monolog/monolog suggests installing php-amqplib/php-amqplib (Allow sending log messages to an AMQP server using php-amqplib)

monolog/monolog suggests installing php-console/php-console (Allow sending log messages to Google Chrome)

monolog/monolog suggests installing rollbar/rollbar (Allow sending log messages to Rollbar)

monolog/monolog suggests installing ruflin/elastica (Allow sending log messages to an Elastic Search server)

monolog/monolog suggests installing sentry/sentry (Allow sending log messages to a Sentry server)

behat/mink suggests installing behat/mink-sahi-driver (to enable Sahi.JS support)



and how do I install/replace all the abandoned packages:




Package videlalvaro/php-amqplib is abandoned, you should avoid using it. Use php-amqplib/php-amqplib instead.

Package alexandresalome/php-selenium is abandoned, you should avoid using it. Use facebook/webdriver instead.

Package behat/mink-selenium-driver is abandoned, you should avoid using it. Use behat/mink-selenium2-driver instead.



I don’t want to screw up. Thanks.

Oh, this is my composer.json




{

	"name": "yiisoft/yii2-app-advanced",

	"description": "Yii 2 Advanced Project Template",

	"keywords": ["yii2", "framework", "advanced", "project template"],

	"homepage": "http://www.yiiframework.com/",

	"type": "project",

	"license": "BSD-3-Clause",

	"support": {

		"issues": "https://github.com/yiisoft/yii2/issues?state=open",

		"forum": "http://www.yiiframework.com/forum/",

		"wiki": "http://www.yiiframework.com/wiki/",

		"irc": "irc://irc.freenode.net/yii",

		"source": "https://github.com/yiisoft/yii2"

	},

	"minimum-stability": "stable",

	"require": {

		"php": ">=5.4.0",

		"yiisoft/yii2": ">=2.0.6",

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

		"yiisoft/yii2-swiftmailer": "^2.0",

		"yiisoft/yii2-apidoc": "~2.0.0",

		"kartik-v/yii2-widget-datepicker": "@dev",

		"kartik-v/yii2-field-range": "*",

		"kartik-v/yii2-date-range": "*"

	},

	"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"

		}

	},

	"scripts": {

		"post-install-cmd": "php init --env=Development --overwrite=n"

	}

}




Basically, if you already used Codeception, the only thing is to remove yii2-codeception package. If not — remove it anyway.

Hi

Questions:

Upgrading my project and changing yii2-codeception by codeception/codeception. Now

Why i have symfony libreries in my project?

can i remove it safely?

all this suggested packages after upgrading are really necessary?

Some of your project’s dependencies has a dependency on them.

NO. Do not remove anything from vendor directory. Let Composer do its job and manage your project’s dependencies.

No, you can safely ignore them.

nelsonyrg, if you don’t write tests using Codeception, remove it from composer.json and run “composer update”.

thank you, and sorry for late answer