Composer failing to download packages

I have just built a Vagrant virtual machine running Debian 8 and php7.0 and have just started the install steps.




composer global require "fxp/composer-asset-plugin v1.1.1"

composer create-project --prefer-dist yiisoft/yii2-app-advanced yii-application



But I get the error below:




Installing yiisoft/yii2-app-advanced (2.0.9)

    Failed to download yiisoft/yii2-app-advanced from dist: The zip extension and unzip command are both missing, skipping.

The php.ini used by your command-line PHP is: /etc/php/7.0/cli/php.ini

    Now trying to download from source

  - Installing yiisoft/yii2-app-advanced (2.0.9)

    Cloning fd3b27541b4af8dad7df4481c031e5cb6ff54671



I get this error for the following also: yiisoft/yii2-composer, swiftmailer/swiftmailer, bower-asset/jquery, bower-asset/yii2-pjax, etc… All packages I think.

I found similar issues with Google but they haven’t been helpful.

Any ideas?

I am not sure, but is it related to gzip not available?

Thanks hrnair. zip and unzip were not installed on the distro. Strange. I think I’m going to try a different Debian Vagrant box.