Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Capture12.PNG

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
TAGS
Community showcase
Published in Jira

Admins, notify your Jira instance of system-wide changes with the new admin announcement banner

Hi All! We’re excited to share the launch of an announcement banner that lets Jira site administrators communicate directly to their users across their  Jira Cloud instance.  ...

638 views 16 18
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