Skip to content

unable to install in latest version #4126

Description

@BilalSwl6

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions