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

composer error : ext-zip * -> the requested PHP extension zip is missing from your system. #50

Open
mikevolmar opened this issue Oct 15, 2020 · 1 comment

Comments

@mikevolmar
Copy link

mikevolmar commented Oct 15, 2020

New install appears to be fine. Except, I'm running into an error with php-fpm trying to install phpoffice/spreadsheets missing a dependency ext-zip

composer require phpoffice/phpspreadsheet
Using version ^1.15 for phpoffice/phpspreadsheet
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1

  • Installation request for phpoffice/phpspreadsheet ^1.15 -> satisfiable by phpoffice/phpspreadsheet[1.15.0].
  • phpoffice/phpspreadsheet 1.15.0 requires ext-zip * -> the requested PHP extension zip is missing from your system.
    Installation failed, deleting ./composer.json.

Anyone know how to fix this issue?

@alizhang
Copy link

alizhang commented Jan 23, 2021

Edit app/composer.json fisrt.
"require": { "symfony/yaml": "^5.2", "phpoffice/phpspreadsheet": "*" }
then run command like this

docker run --rm -v $(pwd)/web/app:/app composer update --ignore-platform-reqs
the libs of php are all installed in docker container, just can not be detected by phpoffice/spreadsheets package, so just add '--ignore-platform-reqs' to ignore it.
it also works for #28
@mikevolmar

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

No branches or pull requests

2 participants