Yii Framework Forum: Issue with composer upgrading to 2.0.10; suggestions and abandoned packages - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Issue with composer upgrading to 2.0.10; suggestions and abandoned packages Rate Topic: -----

#1 User is offline   Nacesprin 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 86
  • Joined: 04-April 10
  • Location:San Fernando - Cadiz - Spain

  Posted 21 October 2016 - 11:02 AM

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


0

#2 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,184
  • Joined: 17-January 09
  • Location:Russia

Posted 21 October 2016 - 01:03 PM

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

Enjoying Yii? Star us at github

Support me so I can work more on Yii: https://www.patreon.com/samdark
0

#3 User is offline   nelsonyrg 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 29-January 13

Posted 22 October 2016 - 02:44 PM

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?
0

#4 User is offline   phtamas 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 777
  • Joined: 26-February 11
  • Location:Mezőtúr, Hungary

Posted 22 October 2016 - 05:47 PM

View Postnelsonyrg, on 22 October 2016 - 02:44 PM, said:

Why i have symfony libreries in my project?

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

View Postnelsonyrg, on 22 October 2016 - 02:44 PM, said:

can i remove it safely?

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

View Postnelsonyrg, on 22 October 2016 - 02:44 PM, said:

all this suggested packages after upgrading are really necessary?

No, you can safely ignore them.
0

#5 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,184
  • Joined: 17-January 09
  • Location:Russia

Posted 24 October 2016 - 12:15 PM

nelsonyrg, if you don't write tests using Codeception, remove it from composer.json and run "composer update".
Yii 2.0 Development Cookbook

Enjoying Yii? Star us at github

Support me so I can work more on Yii: https://www.patreon.com/samdark
1

#6 User is offline   nelsonyrg 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 29-January 13

Posted 12 October 2017 - 08:46 AM

thank you, and sorry for late answer
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users