Download Latest Version 2.37.0 source code.tar.gz (173.4 kB)
Email in envelope

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

Home / 2.35.5
Name Modified Size InfoDownloads / Week
Parent folder
2.35.5 source code.tar.gz 2025-09-18 317.6 kB
2.35.5 source code.zip 2025-09-18 382.3 kB
README.md 2025-09-18 2.1 kB
Totals: 3 Items   702.0 kB 0

Changelog

  • Added support for macOS 26 based environments.

    :::yml runs-on: macos-26 steps:

    • name: Setup PHP uses: 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.

    :::yml

    • name: Setup PHP uses: shivammathur/setup-php@v2 with: php-version: '8.1' tools: phpunit:10.5.x
  • Improved installing intl extension with a particular ICU versions.

    :::yml

    • name: Setup PHP uses: shivammathur/setup-php@v2 with: php-version: '8.4' extensions: intl-77.1
  • Fixed tools setup to use the new github-token input value to avoid rate limits.

    :::yml

    • name: Setup PHP uses: shivammathur/setup-php@v2 with: php-version: '8.4' tools: phpcs: 4 github-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 reddit setup-php twitter setup-php status

Source: README.md, updated 2025-09-18