Skip to content

Commit

Permalink
Update use-composer.md
Browse files Browse the repository at this point in the history
  • Loading branch information
colinmollenhour authored Feb 25, 2025
1 parent ac1a34c commit cf884f2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/content/users/install/use-composer.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit cf884f2

Please sign in to comment.