Skip to content

What is the scope for phpenv-virtualenv #1

@nickl-

Description

@nickl-

This said offlist by @ramsey, (paraphrased ever so slightly)

Our primary goals are to be able to separate out the include paths and extensions used for various projects. Currently, most people use different VMs to accomplish this, but we think it would be great to be able to use the same machine and to use "activate" and "deactivate" commands (like with virtualenv) to set up and "tear down" your PATH, so that you're potentially using a different PHP with different PEAR and PECL extensions, as you switch from project to project on the same machine.

We phpenv is complementary to this, since it provides the ability for the user to easily build their own different version of PHP, placing it into their home directory, without any need for super user access, but we do think there's still a need for a project that differs from phpenv. With phpenv, the user will be able to build one "central" PHP 5.3 binary, for example. With phpenv-virtualenv, they will be able to create a "virtual" environment that wraps the PHP 5.3 binary they installed with phpenv (or the system PHP, if they choose), and then it will separate it out into its own "virtual" environment, where PEAR and PECL libraries will go separately from the "central" library in their ~/.phpenv/versions directory. They could essentially reuse the same PHP 5.3 binary with multiple projects that use multiple versions of PEAR and PECL extensions.

@ramsey and @jwoodcock have discussed ideas for something more than phpenv and they get a +1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions