D
D
Dmitry2014-11-06 10:07:17
proxy
Dmitry, 2014-11-06 10:07:17

How to use composer via http proxy server?

Hello.
I am using http proxy at work. As a result, I can't use composer.
When I try to update it says:

The " https://packagist.org/packages.json " file could not be downloaded: failed to open stream: the destination computer denied
the connection request.

after:
https://packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of date
Updating dependencies (including require-dev)

Is there a way to make composer friends with a proxy?
PS. There is direct access via SSH (maybe there are workarounds).
PS2. It is pointless to ask admins to open access.
PS3. Windows 7
Thank you in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
egor_nullptr, 2014-11-06
@egor_nullptr

export HTTP_PROXY="http://my-corp-proxy.llc"
composer install

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question