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