From cf884f28118f8fc3f6c9a83395ea8c7b055fc9e3 Mon Sep 17 00:00:00 2001 From: Colin Mollenhour Date: Mon, 24 Feb 2025 20:53:08 -0500 Subject: [PATCH] Update use-composer.md --- docs/content/users/install/use-composer.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/content/users/install/use-composer.md b/docs/content/users/install/use-composer.md index e253b969fe9..67a62628c1c 100644 --- a/docs/content/users/install/use-composer.md +++ b/docs/content/users/install/use-composer.md @@ -30,6 +30,16 @@ Configure root directory that magento-lts will be installed to, such as `pub`, ` composer config extra.magento-root-dir pub ``` +## Specify PHP engine version + +This is not strictly required, but if you are running composer with a different PHP version than your target environment, +specifying the engine version will ensure that the correct dependencies are installed for your target environment, +ignoring the PHP engine used to run composer. + +```bash +composer config platform.php 8.4 +``` + ## Require `magento-core-composer-installer` === "PHP 8"