FS#71929 - [composer] add php7 as a alternative dependency to php(8)

Attached to Project: Arch Linux
Opened by Ole (olestr) - Thursday, 26 August 2021, 18:14 GMT
Last edited by Pierre Schmitz (Pierre) - Friday, 17 September 2021, 09:33 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Pierre Schmitz (Pierre)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


>Composer requires PHP 5.3.2+ to run

I'd like to install this without having to install php 8, until php 8 is available on Debian testing - or at least unstable :)
This task depends upon

Closed by  Pierre Schmitz (Pierre)
Friday, 17 September 2021, 09:33 GMT
Reason for closing:  Won't implement
Comment by Pierre Schmitz (Pierre) - Tuesday, 31 August 2021, 15:28 GMT
That is not easy to do as php7 does not provide /usr/bin/php but /usr/bin/php7 instead. We'd need to have a specific package for php7. You still can explicitly run composer with php7.

Note that php7 was just a just a temporay solution and will be removed from the repo this year. You should upgrade to php 8.
Comment by Ole (olestr) - Tuesday, 31 August 2021, 15:57 GMT
I see, makes sense to create a php7-composer instead, if really needed!

I've installed it manually via https://getcomposer.org/download/ and placed it in .local/bin, for now - until we're ready to hop on version 8 👍

Works just fine along with a ln -s /usr/bin/php7 .local/bin/php as well.

Appreciate the temporary php7 packages, Pierre - they've made this transition easier for me!
Comment by Pierre Schmitz (Pierre) - Tuesday, 31 August 2021, 15:59 GMT
You also could either call composer with php7 directly (/usr/bin/php7 composer) or replace the "#!/usr/bin/env php" in the first line of your composer "binary". That way you could install php 8 at the same time.