Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with php 7.4 #2393

Open
oka-wiadnyana opened this issue Apr 20, 2023 · 2 comments
Open

Problem with php 7.4 #2393

oka-wiadnyana opened this issue Apr 20, 2023 · 2 comments

Comments

@oka-wiadnyana
Copy link

I cannot download via composer because it tell my php should be 8.1 or more related to the symphony package. How can i still download it via composer while my php is still 7.4?

@NicolasCARPi
Copy link

You can't. Also, even if you could, you would just end up with non-working code. PHP 7.4 is end-of-life, you'll want to upgrade your PHP version instead.

https://www.php.net/supported-versions.php

@thomasb88
Copy link

Last version of PHPWord is working on my 7.4 PHP environment (7.4.33 to be more precise).

More, on https://github.com/PHPOffice/PHPWord, one can read
"PHPWord requires the following:

PHP 7.1+"

It you read https://www.php.net/releases/index.php, You can see
"Support for PHP 7 has been discontinued since 03 Nov 2022.Please consider upgrading to 8."

But sometime it can be done easily, and one have to live with old PHP version on some projects.

Whatever, the problem don't seem to be with composer itself (https://getcomposer.org/doc/00-intro.md#:~:text=Composer%20in%20its%20latest%20version,with%20a%20legacy%20PHP%20version.)
"Composer in its latest version requires PHP 7.2.5 to run. A long-term-support version (2.2.x) still offers support for PHP 5.3.2+ in case you are stuck with a legacy PHP version."

So as PHPWord and composer seems to work with PHP 7.4, the problem should be on you Symphony Package "only".
Perhaps you can try to use an older version of the Symphony Package you are using that accept PHP 7.4 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants