Consider determining and enabling PHP extensions depending on requirements in composer.json
#808
Replies: 3 comments
-
I'm open to a PR that adds extensions based on We can add an input like This can be combined with Handling that would be the responsibility of the user. The action does try to enable extensions that are required for the supported tools though. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your feedback, @shivammathur - perhaps it's too much work and not worth the effort, given the complications. |
Beta Was this translation helpful? Give feedback.
-
We use Composer's built in platform config option to force our local environments and development environments to match our production server version. This makes it easy to grab the appropriate version from composer.json and pass it to php-setup:
Hope this helps someone else who is trying to find a way to force setup-php to match their configuration without having to keep their github actions yml up to date. |
Beta Was this translation helpful? Give feedback.
-
Describe the feature
Similar to #629, perhaps it would be useful to disable all PHP extensions, and determine and enable PHP extensions depending on requirements in
composer.json
.I understand that this could be a bit problematic, because some could have dependencies on PHP extensions that are not directly or indirectly documented in
composer.json
, for example:Version
v2
.Underlying issue
n/a
Describe alternatives
Alternatives include manually disabling and then enabling all required PHP extensions.
Additional context
n/a
Are you willing to submit a PR?
n/a
Beta Was this translation helpful? Give feedback.
All reactions