Reference – Composer error “Your PHP version does not satisfy requirements” after upgrading PHP

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

Override PHP base dependency in composer

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

How to require a fork with composer?

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

CakePHP 3.0 installation: intl extension missing from system

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

Composer require runs out of memory. PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted

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