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

composer based env #64

@ghost

Description

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions