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