Problem with php 7.4
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?
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
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 ?