Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support .php-version #6

Open
CHH opened this issue Sep 29, 2011 · 4 comments
Open

Support .php-version #6

CHH opened this issue Sep 29, 2011 · 4 comments

Comments

@CHH
Copy link
Owner

CHH commented Sep 29, 2011

Support for using .phpenv-version files for setting project specific versions.

@wilmoore
Copy link

May I suggest something generic like .phpversion so other similar projects can have parity instead of each project having its own vanity file? I think this would be good for the entire community regardless of which tool they choose.

@CHH
Copy link
Owner Author

CHH commented Mar 16, 2012

Yep, that's a good one.

Do other PHP environment managers already support this?

@wilmoore
Copy link

I actually have not seen this in any other project so I think whatever you come up with, I'll look into incorporating into php-version as well. This is a good idea.

@jacobbednarz
Copy link

Sorry to revive this but I just opened a topic on phpbrew/phpbrew#481 and would like to get the feedback from this community as well as it looks like you've already started thinking about it.

The idea would be that despite which PHP version manager a developer was using a single .php-version file would account for all of them and be able to be committed to a project. Here are some of the specifications I think would be a good start.

.php-version file

The file itself should contain a single string such as 5.6.22. Acceptable values would include:

  • 5.6 (which would use the latest version for the 5.6 release that you have locally)
  • 5.6-RC4 (which would use the RC4 of the 5.6 release)

Project specific

If a user puts a .php-version inside of a project, upon changing into that directory the PHP version is updated to use the requested version.

Global

Should a user want to change the global PHP version used, they can add a .php-version file to $HOME and it would be applied when a local .php-version could not be found.

What are your thoughts?

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

No branches or pull requests

3 participants