Try running the following command:
composer config --global repo.packagist composer https://packagist.org
I had a similar problem, discussed here, and the above worked for me.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
when i try to install laravel via composer and ssh i get a timout everytime on the same file
[Composer\Downloader\TransportException]
The "http://packagist.org/p/provider-2015-04$496debf12911ea00c6d11678b39f999293db633589cb5e09ae0aded30451a787.json
" file could not be downloaded: failed to open stream: Connection timed out
i tried to set the ssh timeout to a number like 99999 , but it doesn't work
any thoughts?
Please or to participate in this conversation.