Setup PHP Action
Version updated for shivammathur/setup-php to version 2.28.0.
- This action is used across all versions by 111,993 repositories.
Go to the GitHub Marketplace to find the latest changes.
Release notes
Changelog
- Specifying 8.3 in
php-version
now installs a stable build of PHP 8.3.
- name: Setup PHP 8.3
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
- Specifying
latest
inphp-version
now installs PHP 8.3 as well.
- name: Setup Latest PHP
uses: shivammathur/setup-php@v2
with:
php-version: 'latest'
- Specifying
nightly
inphp-version
now installs PHP 8.4.
- name: Setup Nightly PHP
uses: shivammathur/setup-php@v2
with:
php-version: 'nightly'
- Added support for
intl
extension with ICU 74.1 (https://github.com/shivammathur/icu-intl/pull/7)
- name: Setup PHP with intl
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
extensions: intl-74.1
- Added support to specify
zts
inphpts
environment variable instead ofts
to set up thread-safe PHP on Linux and Windows.
- name: Setup PHP 8.3 (ZTS)
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
env:
phpts: zts
- Fixed support for debug builds. (#784)
- name: Setup PHP 8.3
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
env:
debug: true
Added support for cached builds for PHP 8.3, PHP 8.4, and zts builds of all versions of PHP 5.6 and newer on Ubuntu GitHub Hosted environments. This should reduce the time it takes to set up these PHP versions.
Added
swoole
to the builds cache for GitHub-hosted environments for PHP 7.2 and newer.
- name: Setup PHP 8.3
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
extensions: swoole
Added PHP 8.3 and PHP 8.4 to the extension lists in the wiki. (#787).
PHP 8.0 is now marked as
End of life
and PHP 8.1 is now marked asSecurity fixes only
in README. See PHP Support in README.Fixed support for Blackfire extension. The action now disabled
Xdebug
andpcov
extensions by default whenblackfire
is specified inextensions
input.
- name: Setup PHP with blackfire extension
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
extensions: blackfire
- Fixed support for
grpc_php_plugin
when installed along withprotoc
on macOS.
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
tools: protoc, grpc_php_plugin
- Fixed support for
geos
extension on PHP 8.3.
- name: Setup PHP with geos extension
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
extensions: geos
- Fixed support for
event
extension on macOS to useopenssl@3
formula.
- name: Setup PHP with geos extension
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
extensions: event
- Update Node.js dependencies.
Merged Pull Requests
For the complete list of changes, please refer to the Full Changelog