Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

varundavda's avatar

Composer not working

Hello all,

I am unable to run any operation through composer. Also, I am unable to access https://www.packagist.org or https://www.getcomposer.org.

This is the output of my composer diagnose.

Checking composer.json: OK
Checking platform settings: OK
Checking git settings: OK
Checking http connectivity to packagist: Warning: Accessing packagist.org over h                                                                                        ttp which is an insecure protocol.
FAIL
[Composer\Downloader\TransportException] The "http://packagist.org/packages.json                                                                                        " file could not be downloaded: failed to open stream: Connection timed out
Checking https connectivity to packagist: FAIL
[Composer\Downloader\TransportException] The "https://packagist.org/packages.jso                                                                                        n" file could not be downloaded: failed to open stream: Connection timed out
Checking github.com rate limit: FAIL
[Composer\Downloader\TransportException] The "https://api.github.com/rate_limit"                                                                                         file could not be downloaded: failed to open stream: Connection timed out
Checking disk free space: OK
Checking pubkeys:
Tags Public Key Fingerprint: 57815BA2 7E54DC31 7ECC7CC5 573090D0  87719BA6 8F3BB                                                                                        723 4E5D42D0 84A14642
Dev Public Key Fingerprint: 4AC45767 E5EC2265 2F0C1167 CBBB8A2B  0C708369 153E32                                                                                        8C AD90147D AFE50952
OK
Checking composer version:

  [Composer\Downloader\TransportException]
  The "https://getcomposer.org/versions" file could not be downloaded: failed
   to open stream: Connection timed out


I am using Windows. I am able to access http://packagist.org and http://getcomposer.org through my mobile.

But, even if i use my mobile hotspot and try to open on my laptop it does not get open.

I feel this is because of firewall, how can i check and alter if this is blocked by my firewall?

My firewall state is : OFF

0 likes
4 replies
varundavda's avatar

@martinbean I am on my personal laptop. It used to work a few weeks back, but now it does not seem to work at all.

Root13's avatar

I may compose it for you, if you want:)

Please or to participate in this conversation.