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

unable to install in latest version #4126

Open
1TXB1L4L opened this issue Aug 4, 2024 · 1 comment
Open

unable to install in latest version #4126

1TXB1L4L opened this issue Aug 4, 2024 · 1 comment

Comments

@1TXB1L4L
Copy link

1TXB1L4L commented Aug 4, 2024

This is a error:

composer require phpoffice/phpspreadsheet
./composer.json has been updated
Running composer update phpoffice/phpspreadsheet
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - phpoffice/phpspreadsheet[1.0.0, ..., 1.8.2] require php ^5.6|^7.0 -> your php version (8.3.8) does not satisfy that requirement.
    - phpoffice/phpspreadsheet[1.9.0, ..., 1.12.0] require php ^7.1 -> your php version (8.3.8) does not satisfy that requirement.
    - phpoffice/phpspreadsheet[1.13.0, ..., 1.14.1] require php ^7.2 -> your php version (8.3.8) does not satisfy that requirement.
    - phpoffice/phpspreadsheet[1.15.0, ..., 1.28.0] require maennchen/zipstream-php ^2.1 -> found maennchen/zipstream-php[2.1.0, ..., 2.4.0] but it conflicts with your root composer.json require (^0.5.2).
    - phpoffice/phpspreadsheet[1.29.0, 2.0.0, ..., 2.2.1] require maennchen/zipstream-php ^2.1 || ^3.0 -> found maennchen/zipstream-php[2.1.0, ..., 2.4.0, 3.0.0, 3.0.1, 3.0.2, 3.1.0] but it conflicts with your root composer.json require (^0.5.2).
    - Root composer.json requires phpoffice/phpspreadsheet * -> satisfiable by phpoffice/phpspreadsheet[1.0.0, ..., 1.29.0, 2.0.0, 2.1.0, 2.2.0, 2.2.1].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require phpoffice/phpspreadsheet:*" to figure out if any version is installable, or "composer require phpoffice/phpspreadsheet:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

l

What features do you think are causing the issue

no, any function affecting, its not installing in latest version

Does an issue affect all spreadsheet file formats? If not, which formats are affected?

  • no, its giving issue while i run this command
    composer require phpoffice/phpspreadsheet

Which versions of PhpSpreadsheet and PHP are affected?

  • Composer version 2.7.7 2024-06-10 22:11:12
    PHP version 8.3.8
@1TXB1L4L 1TXB1L4L changed the title Not working with php 8.3.8 unable to install in latest version Aug 4, 2024
@oleibman
Copy link
Collaborator

oleibman commented Aug 4, 2024

Our composer.json includes:

"maennchen/zipstream-php": "^2.1 || ^3.0",

According to your error message:

but it conflicts with your root composer.json require (^0.5.2)

Where is that requirement coming from?

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

2 participants