1
votes

I have downloaded .zip for zendskeleton and it is having composer.phar and composer.json. when I run below given command in Git CLI from zendskeleton folder it gives some error.

php composer.phar self-update

Error:

$ php composer.phar self-update

[Composer\Downloader\TransportException] The "https://getcomposer.org/version" file could not be downloaded: failed to open stream: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection fai led because connected host has failed to respond.

self-update

php composer.phar install

Error:

$ php composer.phar install Warning: This development build of composer is over 30 days old. It is recommend ed to update it by running "composer.phar self-update" to get the latest version . Loading composer repositories with package information

[Composer\Downloader\TransportException] The "https://packagist.org/packages.json" file could not be downloaded: fai led to open stream: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-c ustom-installers] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--opt imize-autoloader]

Edit: with php composer.phar update

$ php composer.phar update Warning: This development build of composer is over 30 days old. It is recommend ed to update it by running "composer.phar self-update" to get the latest version . Loading composer repositories with package information

[Composer\Downloader\TransportException] The "https://packagist.org/packages.json" file could not be downloaded: fai led to open stream: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-custom-installers] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [ -o|--optimize-autoloader] [packages1] ... [packagesN]

1
have you tried php composer.phar update ?Paulraj
what will happen with this command?Poonam Bhatt
This will update the dependencies to latest version.Paulraj
not working...see i have updated my quest with it as wellPoonam Bhatt
FYI, to configure composer behind http proxy, (getcomposer.org/doc/03-cli.md#http-proxy-or-http-proxy)Paulraj

1 Answers

1
votes

The error occurred due to the proxy settings. You need to set the http_proxy environment variables since you are on windows OS. You can set the environment variables as below,

set http_proxy=<your_http_proxy:proxy_port>
set https_proxy=<your_https_proxy:proxy_port>

To configure composer behind http proxy, Http Proxy