Download Latest Version 2.36.0 source code.tar.gz (321.6 kB)
Email in envelope

Get an email when there's a new version of Setup PHP in GitHub Actions

Home / 2.36.0
Name Modified Size InfoDownloads / Week
Parent folder
2.36.0 source code.tar.gz 2025-11-26 321.6 kB
2.36.0 source code.zip 2025-11-26 388.5 kB
README.md 2025-11-26 3.7 kB
Totals: 3 Items   713.8 kB 0

Changelog

  • Added support for PHP 8.5 stable release.

    :::yml - name: Setup PHP 8.5 (stable) uses: shivammathur/setup-php@v2 with: 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)

    :::yml - name: Setup PHP 8.6.0-dev uses: shivammathur/setup-php@v2 with: php-version: '8.6'

  • Added support for pdo_ibm and ibm_db2 extensions.

    :::yml - name: Setup PHP with pdo_ibm and ibm_db2 extensions uses: shivammathur/setup-php@v2 with: php-version: '8.5' extensions: pdo_ibm, ibm_db2

  • Added support to install blackfire extension on PHP 8.5.

    :::yml - name: Setup PHP with blackfire extension uses: shivammathur/setup-php@v2 with: 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)

    :::yml - name: Setup PHP with amqp extension uses: shivammathur/setup-php@v2 with: php-version: '8.5' extensions: gnupg-1.5.4

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

    :::yml - name: Setup PHP with symfony-cli uses: shivammathur/setup-php@v2 with: 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. (https://github.com/shivammathur/homebrew-extensions/pull/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 reddit setup-php twitter setup-php status

Source: README.md, updated 2025-11-26