shivammathur / setup-php

GitHub action to set up PHP with extensions, php.ini configuration, coverage drivers, and various tools.
https://setup-php.com
MIT License
2.91k stars 340 forks source link

Ability to always use the lowest stable version of PHP #793

Closed davereid closed 9 months ago

davereid commented 10 months ago

Describe the feature Instead of hard-coding a PHP version and having to keeping it up to date every year (vs always getting the most recent version of PHP which may break things), can I set php-version to whatever the lowest currently supported version would be? Currently that would be 8.1 until 25 Nov 2024 as per https://www.php.net/supported-versions.php.

Version

Underlying issue

Describe alternatives

Additional context The ubuntu-latest image ships with PHP 8.1 and Composer 2.6 as per https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2204-Readme.md#php-tools but I need this action in order to install tools globally and make them available in the path.

Are you willing to submit a PR? Yes!

shivammathur commented 9 months ago

Released 2.29.0 with support for this.