Can composer connect via proxy/tunnel?

1,243 views
Skip to first unread message

Fan Zhang

unread,
Mar 12, 2014, 1:35:35 AM3/12/14
to compose...@googlegroups.com
Hi,

We are using composer to install varies packages such as behat, from within China. Unfortunately behat is not accessible, and sometimes is github. It's extremely difficult to work with the installation where at some point during the setup just stop due to network issue. Is there anyway composer can connect to proxy/tunnel in a simple way? such as "composer install --proxy 127.0.0.1:8081"?

Thanks,

Sebastian Krebs

unread,
Mar 12, 2014, 4:09:04 AM3/12/14
to compose...@googlegroups.com
Hi,

Have a look at Satis [1]. With this you can easily create a local mirror. You can then add it as additional composer-repository [2] into ~/.composer/config.json. At least that how I've circumvent the github-issue and beside it's often faster :) You can also define local urls ("file:///path/to/repo") there.

Regards,
Sebastian


--
You received this message because you are subscribed to the Google Groups "composer-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to composer-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
github.com/KingCrunch

Jordi Boggiano

unread,
Mar 12, 2014, 4:57:35 AM3/12/14
to compose...@googlegroups.com
Proxies are supported via the standard http_proxy env var. See details
at https://getcomposer.org/doc/03-cli.md#http-proxy-or-http-proxy

Cheers

--
Jordi Boggiano
@seldaek - http://nelm.io/jordi

Fan Zhang

unread,
Mar 13, 2014, 11:22:29 PM3/13/14
to compose...@googlegroups.com
Thanks, I will take a look.

Fan Zhang

unread,
Mar 13, 2014, 11:59:45 PM3/13/14
to compose...@googlegroups.com
Hi Jordi,

Thanks for your reply, I'm using socket tunnel, which does not seem to work using http_proxy.

I will try the local repository.

Thanks again,
Reply all
Reply to author
Forward
0 new messages