How can I resolve “Your requirements could not be resolved to an installable set of packages” error?
Run this command: composer install –ignore-platform-reqs or composer update –ignore-platform-reqs
Run this command: composer install –ignore-platform-reqs or composer update –ignore-platform-reqs
First of all, read the warning! It says do not run composer as root! Secondly, you’re probably using Xammp on your local which has the required php libraries as default. But in your server you’re missing ext-dom. php-xml has all the related packages you need. So, you can simply install it by running: sudo apt-get … Read more
composer require vendor/package:version for example: composer require refinery29/test-util:0.10.2
The Problem As well as the versions of other packages they require, Composer packages can specify the versions of PHP which they support. While resolving the versions of packages to install, Composer has to find versions which match all the constraints in place: The version constraints you’ve specified for dependencies in your composer.json The version … Read more
You can use –ignore-platform-reqs option for composer commands like install, update etc. –ignore-platform-reqs: ignore php, hhvm, lib-* and ext-* requirements and force the installation even if the local machine does not fulfill these. See also the platform config option. https://getcomposer.org/doc/03-cli.md So you can try with composer install –ignore-platform-reqs
This can happen for a variety of reasons. The important thing is to pay attention to the error message which generally points very accurately to the source of the issue. Path Case The most common reason for this is that, as shown in the error message, the case for the different components of the pathname … Read more
The most common (and easiest) way of doing it is using a VCS repository. All you have to do is add your fork as a repository and update the version constraint to point to your custom branch. Your custom branch name must be prefixed with dev-. Assuming you forked monolog/monolog and created a branch called … Read more
The “Can only install one [x, y]” message appears when two different packages point to the same dependency, but different major, mutually exclusive versions where only one can be installed. Troubleshooting For example, one version can be “locked at” due to the information present in your composer.lock file which may conflict with what you’re trying … Read more
I faced the same problem today. You need to enable the intl PHP extension in your PHP configuration (.ini). Solution Xampp (Windows) Open /xampp/php/php.ini Change ;extension=php_intl.dll to extension=php_intl.dll (remove the semicolon) Copy all the /xampp/php/ic*.dll files to /xampp/apache/bin Restart apache in the Xampp control panel Solution Linux (thanks to Annamalai Somasundaram) Install the php5-intl extension … Read more
To get the current memory_limit value, run: php -r “echo ini_get(‘memory_limit’).PHP_EOL;” Try increasing the limit in your php.ini file (ex. /etc/php5/cli/php.ini for Debian-like systems): ; Use -1 for unlimited or define an explicit value like 2G memory_limit = -1 Or, you can increase the limit with a command-line argument: php -d memory_limit=-1 composer.phar require hwi/oauth-bundle … Read more