Skip to content
Compare
Choose a tag to compare
@shivammathur shivammathur released this 15 Jan 09:42
· 86 commits to main since this release
6d7209f

Changelog

  • Added support for 'lowest' and 'highest' aliases to specify PHP versions. #794
    • The lowest alias installs the lowest actively supported version in the PHP project.
    • The 'highest' alias is equivalent to the 'latest' alias, so it installs the latest supported stable PHP version.
- name: Setup PHP
  uses: shivammathur/setup-php@v2
  with:
    php-version: lowest # or highest
  • Added support for thread-safe builds on macOS. This completes the support for thread-safe builds on all supported platforms.
- name: Setup ZTS PHP
  uses: shivammathur/setup-php@v2
  with:
    php-version: '8.3'
  env:
    phpts: zts
  • Updated documentation for support to read the PHP version from composer.lock and composer.json files.
    • If php-version and php-version-file inputs are not specified, then it can read the php version from platform-overrides.php value in composer.lock or config.platform.php value from composer.json. #800
- name: Checkout
  uses: actions/checkout@v4
- name: Setup PHP
  uses: shivammathur/setup-php@v2
  • Switched to the new PHPCSStandards/PHP_CodeSniffer repository for builds of phpcs and phpcbf tools. #809
- name: Setup PHP
  uses: shivammathur/setup-php@v2
  with:
    php-version: '8.3'
    tools: phpcs, phpcbf
  • Marked v1 version of the action as completely unsupported, it will receive no updates, please upgrade to v2, if not done already.

  • Fixed installing extensions on Windows for PHP 8.1 by reverting the version bump for minimum stability. #807

  • Fixed building extensions on PHP 8.4 that used backward compatibility headers from ext/standard to use ext/random/php_random.h header.

  • Improved support for phalcon to install the extension when specified without the version number. #796

- name: Setup PHP
  uses: shivammathur/setup-php@v2
  with:
    php-version: '8.3'
    extensions: phalcon
  • Updated codeql workflow to use v3 versions of codeql actions. #803

  • Updated docs workflow to use actions/download-artifact@v4 and actions/upload-artifact@v4. #804, #805

  • Updated Node.js dependencies.

Merged Pull Requests

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

Thanks @dr5hn, @tighten, @ZeekInteractive, @acelaya, and @fulopattila122 for the sponsorship ❤️

Follow for updates

setup-php reddit setup-php twitter setup-php status