How to run composer install / update in Herd ? #572
-
Hi . I am using php8.2 on M1 Macbook laptop. I have another projects which are based on 8.0 and 7.4, but these projects does not So I have to install packages with composer. How can I do this ? I tried to find it but all failed to install packages with old php versions. Is it impossible to run 'composer install / update' with another php version in Herd ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
If you have isolated the sites, you can run "herd composer" to use composer with the isolated php version a |
Beta Was this translation helpful? Give feedback.
-
I use Herd on Windows 11, where composer is executed via ~\.config\herd\bin\composer.bat
I copied the file in the same directory to composer81.bat and replaced the startup with the appropriate version of PHP 8.1
The resulting I'm sure you can do the same on macOS. It's a shame that Herd doesn't have this by default. |
Beta Was this translation helpful? Give feedback.
If you have isolated the sites, you can run "herd composer" to use composer with the isolated php version a