I've tried to run "php composer.phar update" but I got this error:
Key extra is a duplicate in ./composer.json at line 94
ComposerHookHandler::onPreUpdate
Deprecation Notice: The Composer\Package\LinkConstraint\VersionConstraint class is deprecated, use Composer\Semver\Constraint\Constraint instead. in phar:///home/budrysl2/domains/westeros.com.pl/public_html/composer.phar/src/Composer/Package/LinkConstraint/VersionConstraint.php:17
Deprecation Notice: The Composer\Package\LinkConstraint\LinkConstraintInterface interface is deprecated, use Composer\Semver\Constraint\ConstraintInterface instead. in phar:///home/budrysl2/domains/westeros.com.pl/public_html/composer.phar/src/Composer/Package/LinkConstraint/LinkConstraintInterface.php:17
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package mediawiki/mediawiki-codesniffer 0.5.0 is satisfiable by mediawiki/mediawiki-codesniffer[v0.5.0] but these conflict with your requirements or minimum-stability.
Problem 2
- The requested package mediawiki/mediawiki-codesniffer 0.5.0 is satisfiable by mediawiki/mediawiki-codesniffer[v0.5.0] but these conflict with your requirements or minimum-stability.
Problem 3
- The requested package mediawiki/mediawiki-codesniffer 0.4.0 is satisfiable by mediawiki/mediawiki-codesniffer[v0.4.0] but these conflict with your requirements or minimum-stability.
Problem 4
- The requested package mediawiki/mediawiki-codesniffer 0.4.0 is satisfiable by mediawiki/mediawiki-codesniffer[v0.4.0] but these conflict with your requirements or minimum-stability.
I use it on my MediaWiki page on westeros.com.pl
Could anybody help me?
Except for the duplicate "merge-plugin" key, your composer.json is correct and installs fine on my setup :
Generating optimized autoload files
Key merge-plugin is a duplicate in ./composer.json at line 92
Class ComposerHookHandler is not autoloadable, can not call pre-update-cmd script
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating optimized autoload files
$
Maybe there was a problem in one of the package dependencies before ?
Related
I am trying to import Google's Text-To-Speech library
composer require google/cloud-text-to-speech
But I get this error
Using version ^0.4.4 for google/cloud-text-to-speech
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for google/cloud-text-to-speech ^0.4.4 -> satisfiable by google/cloud-text-to-speech[v0.4.4].
- Conclusion: don't install google/gax 0.37.0
- google/cloud-text-to-speech v0.4.4 requires google/gax ^1.0 -> satisfiable by google/gax[1.0.0, 1.0.1, 1.0.2, 1.0.3].
- Can only install one of: google/gax[1.0.0, 0.37.0].
- Can only install one of: google/gax[1.0.1, 0.37.0].
- Can only install one of: google/gax[1.0.2, 0.37.0].
- Can only install one of: google/gax[1.0.3, 0.37.0].
- Installation request for google/gax (locked at 0.37.0) -> satisfiable by google/gax[0.37.0].
Installation failed, reverting ./composer.json to its original content.
How can I fix this? Is there any available libraries to download without using Composer?
It looks like either you or another dependency in your project also requires google/gax, but in an older version. You can find out why google/gax is locked at version 0.37.0 using the why command:
composer why google/gax
This should tell you wether it's installed as a root dependency, meaning you explicitly installed it or which other dependency requires it.
Then you have to find out whether there is a newer version of that dependency, so you can upgrade that dependency to be able to use a newer version of google/gax. If you determine updating it is safe just add both extensions to the require command or update the dependency first and then try requiring google/cloud-text-to-speech again.
Composer also provides a way to automatically update all dependencies for you, but this obviously risks introducing breaking changes from the updates, so use this with proper care:
--update-with-dependencies Allows inherited dependencies to be updated, except those that are root requirements.
--update-with-all-dependencies Allows all inherited dependencies to be updated, including those that are root requirements.
So running:
composer require --update-with-all-dependencies google/cloud-text-to-speech
should update your application in a way that it supports the required version of google/gax in order to install google/cloud-text-to-speech. This will likely result in other dependencies being updated and you can check the output to see which ones were affected.
I am trying to install from a composer.json file using composer install in the right directory but I am getting this error:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package scrapbook/psr-cache could not be found in any version, there may be a typo in the package name.
Problem 2
- The requested package satooshi/php-coveralls dev-master exists as satooshi/php-coveralls[0.1.0, 0.2.0, 0.3.0, 0.3.1, 0.3.2, 0.4.0, 0.5.0, 1.0.x-dev, 1.1.x-dev, 2.0.x-dev, v0.6.0, v0.6.1, v0.7.0, v0.7.1, v1.0.0, v1.0.1, v1.0.2, v1.1.0, v2.0.0] but these are rejected by your constraint.
You have some problems:
1) There isn't any package named scrapbook/psr-cache inside packagist
2) satooshi/php-coveralls hasn't a valid version into your composer.json
I advise you to change the package psr-cache with one valid and fix the php-coveralls version
The composer error is very clear in this.
If you want to check for all valid package please refer to this:
Packagist
I'm using a PHP Laravel website on a Ubuntu server,
Package egeloen/http-adapter is abandoned, you should avoid using it. Use php-ht
tp/httplug instead.
the above message appears when I try to run composer update.
I also tried composer require egeloen/http-adapter , but it shows new error massage now as follows.
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- infusionsoft/php-sdk 1.2.2 requires egeloen/http-adapter ~0.6 -> no matchi
ng package found.
- infusionsoft/php-sdk 1.2.2 requires egeloen/http-adapter ~0.6 -> no matchi
ng package found.
- infusionsoft/php-sdk 1.2.2 requires egeloen/http-adapter ~0.6 -> no matchi
ng package found.
- Installation request for infusionsoft/php-sdk == 1.2.2.0 -> satisfiable by
infusionsoft/php-sdk[1.2.2].
I'm new for these things,Thank You
I'm trying to start new PHP project with google api (calendar). I'm trying to install api using composer. I don't know if I'm doing something wrong or it's not support php7
Command:
composer require google/apiclient:^2.0.0#RC
Result:
C:\inetpub\wwwroot\kalendar>composer require
google/apiclient:^2.0.0#RC ./composer.json has been updated Loading
composer repositories with package information Updating dependencies
(including require-dev) Your requirements could not be resolved to an
installable set of packages.
Problem 1
- The requested package google/apiclient 2.0.0#RC exists as google/apiclient
[1.0.2-beta, 1.0.3-beta, 1.0.4-beta, 1.0.5-beta, 1.0.6-beta, 1.1.1, 1.1.2, 1.1.3
, 1.1.4, 1.1.5, 1.1.6, 1.1.7, dev-add-callback-cache, dev-add-psr6, dev-master,
2.x-dev, dev-v1-master, v1.0.0-alpha, v1.0.1-beta, v2.0.0-RC1, v2.0.0-RC2, v2.0.
0-RC3, v2.0.0-RC4, v2.0.0-RC5, v2.0.0-RC6, v2.0.0-RC7] but these are rejected by
your constraint.
Installation failed, reverting ./composer.json to its original content.
Fixed by executing composer with exact version
composer require v2.0.0-RC7
when I try to install webino-image-thumb using zend php composer it gave me this error
php composer.phar require webino/webino-image-thumb:2.*<br/>
./composer.json has been updated<br/>
Loading composer repositories with package information<br/>
Ignoring unknown parameter "server role"<br/>
Updating dependencies (including require-dev)<br/>
Your requirements could not be resolved to an installable set of packages.<br/><br/>
Problem 1<br/>
- Can only install one of: zf-commons/zfc-admin[v0.1.0, dev-master].<br/>
- Can only install one of: zf-commons/zfc-admin[v0.1.0, dev-master].<br/>
- Installation request for zf-commons/zfc-admin 0.1.0 -> satisfiable by zf-commons/zfc-admin[v0.1.0].<br/>
- Installation request for zf-commons/zfc-admin == 9999999-dev -> satisfiable by zf-commons/zfc-admin[dev-master].<br/>Any help<br/>Lanka
Just replace "webino/webino-image-thumb":"2.*" by "webino/webino-image-thumb":"1.*"
Composer filters packages by stability and by default it requires a minimum stability of stable. You can change this to RC since webino-image-thumb is 2.0.0-RC1 at the time of writing this or just use the 1.* stable release. Check the doc here