I am trying to install 'phpseclib3' PHP library via Composer but I am getting the following error:
Failed to download paragonie/random_compat from dist: The zip extension and unzip/7z commands are both missing, skipping.
The php.ini used by your command-line PHP is: C:\xampp\php\php.ini
Now trying to download from source
In GitDownloader.php line 82:
git was not found in your PATH, skipping source download
I installed Composer in C:\xampp\php\php.exe
.
And I tried following commands: (with same result)
composer require phpseclib/phpseclib:~3.0
composer require --prefer-dist phpseclib/phpseclib:~3.0
P.S. I am doing this because I want to use connect to external SFTP in a custom Wordpress plugin that I am building.