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

Provide Option for PHP version with composer:install_executable #58

Open
rsiddle opened this issue Jul 10, 2019 · 0 comments
Open

Provide Option for PHP version with composer:install_executable #58

rsiddle opened this issue Jul 10, 2019 · 0 comments

Comments

@rsiddle
Copy link

rsiddle commented Jul 10, 2019

Not all systems have a binary on the path for php. Systems with multiple PHP versions installed generally append the version number to the end. For example:

which php72
/usr/bin/php72

which php56
/usr/bin/php56

To work around this an option that allows the PHP version to be specified works. This could be along the lines of:

set :composer_php_version, :php72

or

set :composer_php_version, '/usr/bin/php72'

The default version would always be :php

Related issues:

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

1 participant