Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

composer install not working


1 answer

Heja @Klein-Hans Escuton , welcome to the Atlassian Community.

The error message you posted can be boiled down to that the container you're running composer install in does not have the PHP ZIP extension.

Installing it into a container is normally straight forward, however it depends a bit which container that is which I can not see from your report. If you add a bit more information, this may be easy to overcome.

One way to do this is to create a container with your PHP requirements and then use it within the pipeline. E.g. a Dockerfile and a build process in your git repository.

As an alternative especially within a CI pipeline, not every container must full-fill every requirement of the whole project. E.g. when executing unit-tests that don't touch those parts (phpoffice here), the `ext-zip` (this is the composer requirement for the PHP ZIP extension) is technically no required to let the build pass. A unit-test runner like Phpunit is just an example here, building a package artifact could be another not requiring ext-zip.

If there is no such requirement for that pipeline step, you can tell composer to install without these checks, see the --ignore-platform-reqs argument for the composer install command.

Mind the gap though: Testing or packaging with a different PHP version can lead to unwanted side-effects and/or degradation of the build.

Feel free to share some more details like an excerpt from your bitbucket-pipelines.yml and your further questions.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

⚡️NEW Group for Confluence Cloud Admins

Calling all Confluence Cloud Admins!  We created a new Community Group to support your unique needs as Confluence admins. This is a group where you can ask questions, access resou...

98 views 2 8
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you