Releases: shivammathur/setup-php
2.32.0
Changelog
- Added support for PHP 8.4 as the default stable PHP version.
- name: Setup PHP
uses: shivammathur/setup-php@v2
- Added support for PHP 8.5 as the nightly version. (#867)
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.5'
- Added support for
pre-installed
inphp-version
input. (#872)
It will setup the pre-installed PHP version on the runner as per the docs here
https://github.com/shivammathur/setup-php?tab=readme-ov-file#github-hosted-runners. If the runner does not have a pre-installed PHP version, it will fail.
Please note: It is not recommended to use this unless you are doing something trivial, the pre-installed PHP versions on GitHub hosted runners are old patch versions.
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: pre-installed
- Added support for
.tool-versions
file format inphp-version-file
input. (#883)
If you have an asdf .tool-versions file in your project.
For example, you can specify.tool-versions
now in thephp-version-file
input and the action would setup the correct PHP version.
ruby 3.4
php 8.4
nodejs 23.5
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version-file: .tool-versions
- Added support for to specify the path for composer file in the project to read the PHP version using
COMPOSER_PROJECT_DIR
env value. (#894)
- name: Setup PHP
uses: shivammathur/setup-php@v2
env:
COMPOSER_PROJECT_DIR: php
-
Added support for
macos-15
GitHub hosted environment. -
Added support for
windows-2025
GitHub hosted environment. -
Added support for composer-dependency-analyser tool (#859, #897)
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
tools: composer-dependency-analyser
- Added support for relay extension for PHP 8.4 and 8.5. (#892)
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
extensions: relay
-
Added information on how an extension is loaded in the wiki extension lists. (#887)
https://github.com/shivammathur/setup-php/wiki -
Fixed support for debug builds. (#880)
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
env:
debug: true
- Fixed support for zts buids on self-hosted runners.
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
env:
phpts: ts
- Fixed support for oci extensions for PHP 8.4 and PHP 8.5.
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
extensions: pdo_oci, oci8
- Fixed support for zephir_parser extension.
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
extensions: zephir_parser
- Fixed support for couchbase extension on old PHP versions.
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.1'
extensions: couchbase
- Fixed support for pdo_firebird extension on macos-15.
# runs-on: macos-15
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
extensions: pdo_firebird
- Improved support to install tools in a multi-user self-hosted environment.
- Dropped support for
macos-12
GitHub hosted environments. - Dropped support for Debian 10 based self-hosted environments.
- Update Node.js dependencies.
Thanks @janedbal, @alexmerlin and @tillkruss for the contributions 🎉
Thanks @desrosj, @bloodynumen and @eliashaeussler for the sponsorship ❤️
For the complete list of changes, please refer to the Full Changelog
Follow for updates
2.31.1
Changelog
-
Fix installing PECL extensions on Windows with a build version #855
-
Fix cache support for ioncube extension #856
-
Updated Node.js dependencies.
For the complete list of changes, please refer to the Full Changelog
Follow for updates
2.31.0
Changelog
-
Added support for a fallback mirror for
ondrej/php
PPA when launchpad is down (#834). -
Fixed installing packages on self-hosted environments with existing conf files (#852).
-
Fixed support for
oci8
andpdo_oci
extensions onubuntu-24.04
. -
Fixed support for
couchbase
extension onubuntu-24.04
. -
Fixed support for
ubuntu-24.04
afterapt-fast
was dropped from the GA images. -
Fixed support for
firebird
extension onmacos-14
-
Fixed support for
blackfire
extension onmacos-14
. -
Fixed support for
relay
extension. -
Fixed support for
phalcon
extension for PHP 7.4 on Ubuntu. -
Updated Node.js dependencies.
For the complete list of changes, please refer to the Full Changelog
Follow for updates
2.30.5
Changelog
-
Added support for Ubuntu 24.04.
-
Added support for
easy-coding-standard
in tools (#838) -
Added support for zephir_parser for PHP 8.3.
-
Fixed installing zts PHP versions on macOS (#847).
-
Fixed installing
ev
extension (#844). -
Fixed support for
ioncube
extension (#840). -
Updated Node.js dependencies.
For the complete list of changes, please refer to the Full Changelog
Follow for updates
2.30.4
Changelog
-
Fixed support for
sqlsrv
andpro_sqlsrv
on Windows (#835). -
Fixed a permissions issue for brew on
macos-14
environments. -
Marked PHP 5.3 to PHP 5.5 as not supported on ARM64 macOS environments like
macos-14
.
For the complete list of changes, please refer to the Full Changelog
Follow for updates
2.30.3
Changelog
- Fixed reading extension directory for PHP 8.4 on macOS.
For the complete list of changes, please refer to the Full Changelog
Follow for updates
2.30.2
Changelog
-
Added support for vld extension (shivammathur/homebrew-extensions#3827).
-
Added support to update brew along with the core tap on macOS to handle breaking changes in core tap formulae.
-
Updated Node.js dependencies.
For the complete list of changes, please refer to the Full Changelog
Follow for updates
2.30.1
Changelog
-
Improved updating Homebrew core tap on macOS using a retry logic.
-
Fixed support for phalcon on Windows.
-
Fixed support for OCI extensions for PHP 8.4 on Linux and macOS.
-
Fixed support for
sqlsrv
andpdo_sqlsrv
on PHP 8.0. -
Fixed type error on Windows in
Get-File
function. -
Minified the release file
dist/index.js
file generated byvercel/ncc
. -
Updated pre-installed PHP versions for GitHub runners in the README.
-
Updated Node.js dependencies.
For the complete list of changes, please refer to the Full Changelog
Follow for updates
2.30.0
Changelog
- Added support to set custom composer timeout (#811)
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
env:
COMPOSER_PROCESS_TIMEOUT: 300
For the complete list of changes, please refer to the Full Changelog
Follow for updates
2.29.0
Changelog
- Added support for 'lowest' and 'highest' aliases to specify PHP versions. #794
- The
lowest
alias installs the lowest actively supported version in the PHP project. - The 'highest' alias is equivalent to the 'latest' alias, so it installs the latest supported stable PHP version.
- The
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: lowest # or highest
- Added support for thread-safe builds on macOS. This completes the support for thread-safe builds on all supported platforms.
- name: Setup ZTS PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
env:
phpts: zts
- Updated documentation for support to read the PHP version from
composer.lock
andcomposer.json
files.- If
php-version
andphp-version-file
inputs are not specified, then it can read the php version fromplatform-overrides.php
value in composer.lock orconfig.platform.php
value fromcomposer.json
. #800
- If
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
- Switched to the new
PHPCSStandards/PHP_CodeSniffer
repository for builds ofphpcs
andphpcbf
tools. #809
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
tools: phpcs, phpcbf
-
Marked
v1
version of the action as completely unsupported, it will receive no updates, please upgrade tov2
, if not done already. -
Fixed installing extensions on Windows for PHP 8.1 by reverting the version bump for minimum stability. #807
-
Fixed building extensions on PHP 8.4 that used backward compatibility headers from
ext/standard
to useext/random/php_random.h
header. -
Improved support for
phalcon
to install the extension when specified without the version number. #796
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
extensions: phalcon
-
Updated codeql workflow to use
v3
versions of codeql actions. #803 -
Updated docs workflow to use
actions/download-artifact@v4
andactions/upload-artifact@v4
. #804, #805 -
Updated Node.js dependencies.
Merged Pull Requests
For the complete list of changes, please refer to the Full Changelog
Thanks @dr5hn, @tighten, @ZeekInteractive, @acelaya, and @fulopattila122 for the sponsorship ❤️