php composer Как игнорировать версию PHP (требования)

Если вы получаете ошибку типа:

requires php ^7.0 -> your PHP version (5.6.30) does not satisfy that requirement

Установки зависимостей типа:

compоser install

Используйте флаг:

--ignore-platform-reqs

Например:

compоser install --ignore-platform-reqs
--ignore-platform-reqs: игнорирует требования к 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.