Skip to content
This repository has been archived by the owner on Feb 11, 2019. It is now read-only.

composer based env #64

Open
ghost opened this issue May 7, 2015 · 0 comments
Open

composer based env #64

ghost opened this issue May 7, 2015 · 0 comments

Comments

@ghost
Copy link

ghost commented May 7, 2015

Afaik the composer library/module is for php what pip is for python? If it is there is just one problem: composer keeps binaries on an exclusive bin folder.

So i kinda think: maybe my problem is to get a virtualenv for composer itself and not php at all, because the bin from composer are not linked over the bin folder from the virtphp which is the "goal" (for me) to use env.

I think it could be a nice catch to set the VIRTPHP_ENV_PATH with the composer/bin path on the activate file.

VIRTPHP_ENV_PATH="/Users/guest/folder/to/php_project/env"
VIRTPHP_ENV_PATH=":"$VIRTPHP_ENV_PATH"/composer/vendor/bin"
  • update

i've tried to manipulate the (environment variables)[https://getcomposer.org/doc/03-cli.md#composer-bin-dir] but notthing changed at the installation level. the only progress was to set the VIRTPHP_ENV_PATH to cover the original vendo folder.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants