Releases: shivammathur/setup-php
2.24.0
Support Ukraine
- Added support for
relayextension on Linux and macOS for PHP 7.4 to 8.2. (#682)
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
extensions: relay # or specific version like relay-0.4.6
env:
RELAY_KEY: ${{ secrets.RELAY_KEY }}
RELAY_ENVIRONMENT: development
RELAY_EVICTION_POLICY: lru
RELAY_MAX_MEMORY: 256M- Improved support for
zephir_parserextension. (#681)
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
extensions: zephir_parser-
Fixed support for self-hosted environments with outdated package lists. (#688)
-
Fixed logs for coverage extensions on PHP 8.3. (#685)
-
Fixed PECL options parsing on macOS. (#680)
-
Fixed support for
blackfire-player. -
Fixed fetching
phalconrelease asset URL on Windows. -
Fixed
protocsupport to account for release versions inmajor.minorformat. -
Change the
chocoinstall script URL to avoid redirecting. -
Refactored function names in scripts for tools and extensions with custom support.
-
Updated Node.js dependencies.
Full Changelog: 2.23.0...2.24.0
Thanks! @tillkruss, @quick-order, @jobbsy-dev, and @DracoBlue for the sponsorship ❤️
Thanks! @Rotzbua for the contribution 🎉
Follow for updates
2.23.0
Support Ukraine
- Added support for nightly builds of
PHP 8.3.
Note: Specifying nightly as thephp-versionnow will set upPHP 8.3.
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'- PHP 8.2 is now stable on
setup-php. #673
Notes:- Specifying
latestor8.xas thephp-versionnow will set upPHP 8.2. - Except
ubuntu-22.04, all GitHub runners now havePHP 8.2as the default version.
- Specifying
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'- Added support for thread-safe builds of PHP on Linux. #651
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
env:
phpts: ts-
Improved extension support on macOS for various extensions using the
shivammathur/extensionstap. -
Dropped support for
macos-10.15GitHub runner. Please update your workflows to usemacos-latestormacos-12runner. -
Fixed support for
composer-unused. #668 -
Fixed support for
ini-valueswith the=sign in the value. #676 -
Added fallbacks to various tools and extensions that use the GitHub API for setup to avoid rate limit errors on Windows.
-
Fixed a minor error on macOS while patching updated dependency formulae.
-
Updated Node.js dependencies.
Full Changelog: 2.22.0...2.23.0
Merry Christmas and happy holidays! 🎄🎁
Thanks! @jrfnl and @flavioheleno for the contributions 🎉
Follow for updates
2.22.0
Support Ukraine
- Added support for PHP builds with debugging symbols for PHP 5.6 and above. ALPHA Docs, (#634, shivammathur/homebrew-php#976)
- name: Setup PHP with debugging symbols
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
env:
debug: true - Added support for intl extension with ICU 72.1. shivammathur/icu-intl#4
- name: Setup PHP with intl
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
extensions: intl-72.1-
Existing PHP version on GitHub actions Ubuntu images is now updated if
ppa:ondrej/phpis missing regardless of theupdateenvironment variable. (actions/runner-images#6331). -
Environment variable
COMPOSER_NO_AUDITis now set by default. If you would like to run the composer audit in your workflows, please add a step withcomposer auditcommand. (#635, #636)
- name: Composer audit
run: composer audit-
Switched to
GITHUB_OUTPUTenvironment file for setting up outputs. If you are usingsetup-phpon self-hosted runners, please update it to2.297.0or greater. More Info (#654) -
Updated
sqlsrvandpdo_sqlsrvversion to5.10.1for PHP 7.0 and above on Linux. -
Improved support for
phalcon5extension to set up the latest stable version. -
Improved
symfony-clisupport to fetch the artifact URL from the brew tap on Linux. (#641, #652, #653) -
Improved fetching
brewtaps on Linux to avoid brew's overhead. -
Fixed installing extension packages on self-hosted Linux runners. (#642)
-
Fixed support for
couchbaseandfirebirdextensions after GitHub release page changes. -
Fixed support for older versions of
laravel/pint. (#647) -
Updated Node.js dependencies.
Full Changelog: 2.21.2...2.22.0
Thanks! @alcaeus and @jderusse for the contributions 🎉
Follow for updates
2.21.2
Support Ukraine
- Added support for
rectorin tools input. #627
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
tools: rector- Added support for
astextension onmacOSusingshivammathur/extensionstap.
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
extensions: ast- Fixed support for
symfony-clion Linux #632
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
tools: symfony- Fixed installing unstable extensions from
PECL. #625 - Updated Node.js dependencies.
Follow for updates
2.21.1
2.21.0
Support Ukraine
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: `8.1`
tools: pint- Added support for
phalcon5for all OS. shivammathur/homebrew-extensions#1890
Also fixedphalcon3andphalcon4support onUbuntu 22.04.
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: `8.1`
extensions: phalcon5- Added support for Private Packagist authentication for composer. Docs
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
env:
PACKAGIST_TOKEN: ${{ secrets.PACKAGIST_TOKEN }}- Added support for manual JSON-based authentication for composer Docs
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
env:
COMPOSER_AUTH_JSON: |
{
"http-basic": {
"example.org": {
"username": "${{ secrets.EXAMPLE_ORG_USERNAME }}",
"password": "${{ secrets.EXAMPLE_ORG_PASSWORD }}"
}
}
}- Deprecated
COMPOSER_TOKENin favor ofGITHUB_TOKEN. Docs
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}- Updated Node.js dependencies.
Thanks! @phpstan for the sponsorship ❤️
Thanks! @d8vjork and @ChristophWurst for the contributions 🎉
Follow for updates
2.20.1
Support Ukraine
-
Fixed support for
prestissimowith composerv1. #612 -
Added support for Private Packagist and manual JSON based authentication for composer. ALPHA
Docs - Private Packagist Authentication
Docs - Manual Composer Authentication -
Deprecated
COMPOSER_TOKENin favor ofGITHUB_TOKEN. Docs -
Updated Node.js dependencies.
Follow for updates
2.20.0
Support Ukraine
-
Improved support for
eventextension on Linux and macOS for PHP 5.4 and above. #604 -
Fixed support for composer plugins in
toolsinput. Since composer 2.2, the plugins are required to be marked as allowed in the composer config. This will now be done by default. #611 -
Added support to show code coverage driver's (Xdebug/PCOV) version in the logs when setup using the
coverageinput. #610 -
Fixed a bug where PHP was not added to
PATHduring the action run on self-hosted Windows environments. #609 -
Fixed a bug where the tool cache path was not set on self-hosted environments. #606
-
Updated Node.js dependencies.
Thanks! @jrfnl, @dino182 and @markseuffert for the contributions 🚀
Follow for updates
2.19.1
2.19.0
Support Ukraine
-
Added support for
ubuntu-22.04runner. Docs -
Added support for Couchbase extension
4.xfor PHP 7.4 and above. Also added support to specify the extension version you need. #593Note: Please use the extensions cache if using the latest Couchbase version on Linux as it can take 10+ minutes to build along with its library.
To install the latest version of couchbase extension
- name: Setup PHP uses: shivammathur@setup-php@v2 with: php-version: '8.1' extensions: couchbase
To install a specific version - suffix couchbase with exact version you want in the extensions input.
- name: Setup PHP uses: shivammathur@setup-php@v2 with: php-version: '7.4' extensions: couchbase-2.6.2
-
Improved fallback support upon cache failure in composer setup. This fixes an error when the latest composer version was installed on older PHP versions when fetching composer from
shivammathur/composer-cachefailed. -
Bumped Node.js version required to 16.x. Also bumped build target version to
ES2021.-
If you use any of the following to run
setup-php, please upgrade to their latest versions.
-
-
Removed support for Debian 9 and Ubuntu 21.04 for self-hosted runners. Docs
-
Fixed tools setup with older composer versions which do not create
composer.jsonif missing in the directory. -
Fixed support for extensions on macOS where the extension package name might conflict with package names in homebrew-core repo. This fixes support for
redisextension on macOS on PHP 7.0. -
Fixed enabling cached extensions which depend on other extensions on PHP 7.1 and lower.
-
Fixed setting default INI values so that it is possible to override those using
php -c. #595 -
Fixed PECL support for PHP 5.3, this was broken in previous release while adding support for specifying configure options, as that is only supported on PHP 5.4 and above.
-
Fixed identifying the latest
protocrelease. -
Removed unnecessary
fsdependency. -
Added
dependabotconfig to update older actions in workflows. #597 -
Added permissions for
GITHUB_TOKENin workflows. #596 -
Updated Node.js dependencies.
Thanks! @naveensrinivasan for the contributions 🚀