Download Latest Version 2.35.2 source code.zip (380.4 kB)
Email in envelope

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

Home / 2.35.0
Name Modified Size InfoDownloads / Week
Parent folder
2.35.0 source code.tar.gz 2025-07-28 315.7 kB
2.35.0 source code.zip 2025-07-28 379.9 kB
README.md 2025-07-28 2.6 kB
Totals: 3 Items   698.2 kB 0

Changelog

  • Added support for github-token input. (#969) 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.

Also, it can used to specify a personal access token (PAT) to authenticate with GitHub if you need that for your composer dependencies.

:::yml
- name: Setup PHP
  uses: shivammathur/setup-php@v2
  with:
    php-version: '8.4'
    github-token: ${{ secrets.PAT }}
  • Added support for carthage-software/mago. (#898, [#975])

    :::yml - name: Setup PHP uses: shivammathur/setup-php@v2 with: php-version: '8.4' tools: mago

  • Added support for Roave/BackwardCompatibilityCheck. (#911, [#974])

    :::yml - name: Setup PHP uses: shivammathur/setup-php@v2 with: php-version: '8.4' tools: backward-compatibility-check

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

    :::yml - name: Setup PHP uses: shivammathur/setup-php@v2 with: 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 reddit setup-php twitter setup-php status

Source: README.md, updated 2025-07-28