php作曲家windows安装

I want to install composer and run it's command but i always get error bellow:

Connection Error [ERR_CONNECTION]: Unable to connect to getcomposer.org Request to https://getcomposer.org/installer failed with errors: SSL: Handshake timed out. Failed to enable crypto. Failed to open stream: operation failed

what should i do? i previously can do any thing but suddenly i get error and i don't change any thing!

Hmm, it could be a network issue or it's a misconfiguration of some sort.

I would suggest to check the PHP SSL settings.

  1. make sure the PHP extensions php_openssl and php_curl are enabled.
  2. check that your php.ini has cainfo and cafile properly defined:

    curl.cainfo=/path/to/ssl-certs/ca-bundle.crt
    openssl.cafile=/path/to/ssl-certs/ca-bundle.crt
    

    If certs are missing: download a cert bundle from http://curl.haxx.se/ca/cacert.pem and save as ca-bundle.crt.

  3. check and raise default_socket_timeout in php.ini

    • its 60 by default, so lets say maybe 120. that depends on your connection.