All Versions
88
Latest Version
Avg Release Cycle
95 days
Latest Release
24 days ago

Changelog History
Page 1

  • v2.37.1 Changes

    May 14, 2026

    ๐Ÿ”„ Changelog

    โšก๏ธ Security Updates

    • ๐Ÿ›  Fixed shell command escaping and PHP version input validation. (GHSA-pqwm-q9pv-ph8r / CVE-2026-46420)

    Note

    This can affect workflows that pass values from users or pull requests to setup-php, for example from comments, dispatch inputs, PR titles/branches, generated matrices, or files such as .php-version and composer.json.
    Be especially careful with pull_request_target workflows that use any value from the pull request. Workflows that only use fixed trusted values are not expected to be affected, but updating to 2.37.1 is recommended.

    • ๐Ÿ›  Fixed GitHub auth handling for Composer versions affected by GHSA-f9f8-rm49-7jv2. It should now skip configuring GitHub OAuth if affected Composer versions are installed and show a warning to upgrade. (GHSA-5wxr-w449-57cm / CVE-2026-45793)

    Note

    โšก๏ธ This only affects workflows where the composer version is pinned like composer:2.9.7, workflows that do not pin the version or use composer:v2 are not affected as those get automatic updates. In case you pin the version, it is highly recommended to upgrade and have automation to do such timely upgrades in your workflows.

    ๐Ÿ›  Fixes and Improvements

    • ๐Ÿ›  Fixed support for phalcon on Windows.

    • ๐Ÿ›  Fixed restoring tools when using cached using previous runs.

    • ๐Ÿ‘Œ Improved enabling gearman extension on Linux.

    • ๐Ÿ›  Fixed fallback when installing PhpManager and VcRedist modules on Windows.

    • ๐Ÿ›  Fixed parsing extension inputs with backslash line continuation.

    • ๐Ÿ‘Œ Improved workflow examples

    • ๐Ÿš€ Updated OS release mappings for newer Ubuntu releases.

    • โšก๏ธ Updated internal workflows for Codecov v6 and NPM trusted publishing.

    • โšก๏ธ Updated Node.js dependencies.

    • ๐Ÿ›  Fixed composer version in README. (#1081)

    Thanks @Pyker for the contribution

    For the complete list of changes, please refer to the Full Changelog

    โšก๏ธ Follow for updates

    setup-php redditsetup-php twittersetup-php status

  • v2.37.0 Changes

    March 15, 2026

    ๐Ÿ”„ Changelog

    • โšก๏ธ Updated the action to use Node.js 24. (#1049)

    • โž• Added support for master in the php-version input. It should now set up a nightly build from the master branch of php-src.

    • โž• Added support to install ioncube and zephir_parser extensions on PHP 8.5.

    • Expanded support for installing extensions using Homebrew on macOS from the shivammathur/homebrew-extensions tap. This includes pdo_firebird, sqlsrv, pdo_sqlsrv, pecl_http, swow, xhprof, and several other supported extensions.

    • ๐Ÿ‘Œ Improved switching PHP versions on Linux. Missing alternatives should now be registered automatically before switching versions. #1067

    • ๐Ÿ‘Œ Improved support for Homebrew on macOS. It should now retry stuck brew commands with an inactivity watchdog.

    • ๐Ÿ‘Œ Improved support for adding tools. It should now correctly use the latest release download URL when a version is not specified. (#1064)

    • ๐Ÿ‘Œ Improved tool setup and caching on self-hosted runners.

    • ๐Ÿ‘Œ Improved support for sqlsrv and pdo_sqlsrv on PHP 8.1 and 8.2.

    • ๐Ÿ›  Fixed installing pecl_http on Windows. Switched to downloads.php.net for fixing ICU version post install.

    • ๐Ÿ›  Fixed cached couchbase installs on macOS using the shivammathur/cache-extensions action.

    • Replaced @actions/core with local functions to reduce bundle size.

    • ๐Ÿ”จ Refactored to use ES2024+ features for Node 24.

    • โšก๏ธ Updated actions used in examples to their latest versions.

    • โšก๏ธ Updated Node.js dependencies.

    Thanks @theluckystrike for the contribution ๐ŸŽ‰

    Thanks @code-kudu, @ssddanbrown, @RoundingWell, and @ntzrbtr for the sponsorship โค๏ธ

    For the complete list of changes, please refer to the Full Changelog

    โšก๏ธ Follow for updates

    setup-php redditsetup-php twittersetup-php status

  • v2.36.0 Changes

    November 26, 2025

    ๐Ÿ”„ Changelog

    • โž• Added support for PHP 8.5 stable release.

      -name:Setup PHP 8.5 (stable)uses:shivammathur/setup-php@v2with:php-version:'8.5'

    • โž• Added support for PHP 8.6.0-dev. Specifying 8.6 in the php-version input should now set up a nightly build from the master branch of php-src. (#1002)

      -name:Setup PHP 8.6.0-devuses:shivammathur/setup-php@v2with:php-version:'8.6'

    • Added support for pdo_ibm and ibm_db2 extensions.

      -name:Setup PHP with pdo_ibm and ibm_db2 extensionsuses:shivammathur/setup-php@v2with:php-version:'8.5'extensions:pdo_ibm, ibm_db2

    • โž• Added support to install blackfire extension on PHP 8.5.

      -name:Setup PHP with blackfire extensionuses:shivammathur/setup-php@v2with:php-version:'8.5'extensions:blackfire

    • ๐Ÿ‘Œ Improved support to detect the required libraries when building from source for common extensions. For example installing gnupg from source would install the required libgpgme library automatically. (#1021)

      -name:Setup PHP with amqp extensionuses:shivammathur/setup-php@v2with:php-version:'8.5'extensions:gnupg-1.5.4

    • ๐Ÿ‘Œ Improved support for symfony-cli. It should now correctly set up the requested version. (#1008)

      -name:Setup PHP with symfony-cliuses:shivammathur/setup-php@v2with:php-version:'8.5'tools:symfony-cli:5.16.0

    • ๐Ÿ‘Œ Improved support for relay extension. Also added support to install the nightly version of the extension. (#1011, #1012)

    • ๐Ÿ‘Œ Improved installing PHP on macOS. Also fixed installing PHP on macos-15-intel GitHub runner. (#1029)

    • ๐Ÿ‘Œ Improved support for deb822 format sources files on Linux. It should now set up the sources files in deb822 format on Ubuntu 24.04, Debian 13, and newer. It would automatically switch the format as well for the repositories added by the action to the new format when supported. (#1027)

    • ๐Ÿ‘Œ Improved support for installing pdo_oci. (#1028)

    • ๐Ÿ›  Fixed installing gearman extension for PHP 5.6 and 7.0 on Linux.

    • ๐Ÿ›  Fixed an edge case in tools setup to fall back to the latest version. (#1024)

    • ๐Ÿ›  Fixed support to build extensions with uppercase names from PECL. (#1017)

    • ๐Ÿ›  Fixed warning on redis setup on macOS after formula rename. (shivammathur/homebrew-extensions#5413)

    • ๐Ÿ›  Fixed fallback link for composer setup. (#1025)

    • ๐Ÿ“š Updated the link for flex documentation in README. (#1020)

    • โšก๏ธ Updated Node.js dependencies.

    Thanks @shyim, @tillkruss, and @nicolas-grekas for the contributions ๐ŸŽ‰

    Thanks @JetBrainsOfficial and @cachewerk for the sponsorship โค๏ธ

    For the complete list of changes, please refer to the Full Changelog

    โšก๏ธ Follow for updates

    setup-php redditsetup-php twittersetup-php status

  • v2.35.5 Changes

    September 18, 2025

    ๐Ÿ”„ Changelog

    • โž• Added support for macOS 26 based environments.

      runs-on:macos-26steps: -name:Setup PHPuses:shivammathur/setup-php@v2

    • ๐Ÿ›  Fixed resolving tools' releases to the latest one for a version prefix in tools input. (#1000)
      ๐Ÿš€ For example, this should install the latest release of PHPUnit with 10.5 as the prefix.

      -name:Setup PHPuses:shivammathur/setup-php@v2with:php-version:'8.1'tools:phpunit:10.5.x

    • ๐Ÿ‘Œ Improved installing intl extension with a particular ICU versions.

      -name:Setup PHPuses:shivammathur/setup-php@v2with:php-version:'8.4'extensions:intl-77.1

    • ๐Ÿ›  Fixed tools setup to use the new github-token input value to avoid rate limits.

      -name:Setup PHPuses:shivammathur/setup-php@v2with:php-version:'8.4'tools:phpcs: 4github-token:${{ secrets.GITHUB_TOKEN }}

    • ๐Ÿ‘Œ Improved errors when tools fail to install. (#991)

    • ๐Ÿ›  Fixed warning in get function on request failure.

    • โž• Added a fallback source for composer phar archives. (#956)

    • โž• Added a fallback source for PPA keys. (#996)

    • Fixed opcache.jit_buffer_size config on arm environments. (#999)

    • โšก๏ธ Updated Node.js dependencies.

    For the complete list of changes, please refer to the Full Changelog

    โšก๏ธ Follow for updates

    setup-php redditsetup-php twittersetup-php status

  • v2.35.4 Changes

    August 25, 2025

    ๐Ÿ”„ Changelog

    • ๐Ÿ›  Fixed updating brew core tap before installing PHP on macOS.

    • โšก๏ธ Updated actions in internal workflows.

    • โšก๏ธ Updated Node.js dependencies.

    For the complete list of changes, please refer to the Full Changelog

    โšก๏ธ Follow for updates

    setup-php redditsetup-php twittersetup-php status

  • v2.35.3 Changes

    August 10, 2025

    ๐Ÿ”„ Changelog

    • ๐Ÿ‘Œ Improved github-token support for GitHub Enterprise. (#981).

      -name:Setup PHPuses:shivammathur/setup-php@v2with:php-version:'8.4'github-token:${{ secrets.YOUR_PAT_TOKEN }}

    • ๐Ÿ›  Fixed support for relay extension for PHP 7.4 on macOS.

    • โšก๏ธ Updated internal workflows to not run on forks. (#982)

    • โšก๏ธ Updated Node.js dependencies.

    Thanks @jrfnl for the contributions ๐ŸŽ‰

    For the complete list of changes, please refer to the Full Changelog

    โšก๏ธ Follow for updates

    setup-php redditsetup-php twittersetup-php status

  • v2.35.2 Changes

    July 29, 2025

    ๐Ÿ”„ Changelog

    • ๐Ÿ›  Fixed race condition in updating composer auth.json. (#980)

    For the complete list of changes, please refer to the Full Changelog

    โšก๏ธ Follow for updates

    setup-php redditsetup-php twittersetup-php status

  • v2.35.1 Changes

    July 28, 2025

    ๐Ÿ”„ Changelog

    • ๐Ÿ›  Fixed regression in composer authentication in 2.35.0. (#979)

    • ๐Ÿ›  Fixed installing geos extension on PHP 8.5.

    For the complete list of changes, please refer to the Full Changelog

    โšก๏ธ Follow for updates

    setup-php redditsetup-php twittersetup-php status

  • v2.35.0 Changes

    July 28, 2025

    ๐Ÿ”„ Changelog

    • โž• Added support for github-token input. (#969)
      0๏ธโƒฃ It uses the GITHUB_TOKEN secret by default and should prevent any rate limiting issues while installing your composer dependencies or while adding any tools supported by setup-php.

      -name:Setup PHPuses:shivammathur/setup-php@v2with:php-version:'8.4'github-token:${{ secrets.PAT }}

    • โž• Added support for carthage-software/mago. (#898, #975)

      -name:Setup PHPuses:shivammathur/setup-php@v2with:php-version:'8.4'tools:mago

    • โž• Added support for Roave/BackwardCompatibilityCheck. (#911, #974)

      -name:Setup PHPuses:shivammathur/setup-php@v2with:php-version:'8.4'tools:backward-compatibility-check

    • โž• Added support for shipmonk/name-collision-detector. (#932, #973)

      -name:Setup PHPuses:shivammathur/setup-php@v2with:php-version:'8.4'tools:name-collision-detector

    • ๐Ÿ›  Fixed fallback behavior on adding a specific version of extension when fail-fast is set to true. (#972)

    • ๐Ÿ›  Fixed enabling extensions on Windows. (#978)

    • ๐Ÿ›  Fixed installing gearman extension on PHP 8.5.

    • Cleaned up the cubrid extension script.

    • โœ‚ Removed ondrej/pkg-gearman ppa in gearman extension setup.

    • Switched to ppa.setup-php.com for ondrej/php ppa fallback mirror.

    • โšก๏ธ Update default composer version in README. (#966)

    • ๐Ÿ›  Fixed a broken link in README. (#967)

    • โšก๏ธ Updated Node.js dependencies.

    Thanks @jrfnl and @OskarStark for the contributions ๐ŸŽ‰

    For the complete list of changes, please refer to the Full Changelog

    โšก๏ธ Follow for updates

    setup-php redditsetup-php twittersetup-php status

  • v2.34.1 Changes

    June 12, 2025

    ๐Ÿ”„ Changelog

    • ๐Ÿ›  Fixed tool-cache directory on self-hosted runners.

    • ๐Ÿ›  Fixed generating lock path in unix.sh on verbose branch.

    • โšก๏ธ Updated Node.js dependencies.

    For the complete list of changes, please refer to the Full Changelog

    โšก๏ธ Follow for updates

    setup-php redditsetup-php twittersetup-php status